summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-command.cpp')
-rw-r--r--libpqpp/pq-command.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp
index 5ff83f0..1db81a6 100644
--- a/libpqpp/pq-command.cpp
+++ b/libpqpp/pq-command.cpp
@@ -4,6 +4,9 @@
#include <string.h>
#include <compileTimeFormatter.h>
#include <boost/date_time/posix_time/posix_time.hpp>
+#include <factory.h>
+
+NAMEDFACTORY("postgresql", PQ::CommandOptions, DB::CommandOptionsFactory);
AdHocFormatter(PQCommondStatement, "pStatement_id%?");
PQ::Command::Command(Connection * conn, const std::string & sql, const DB::CommandOptions * opts) :
@@ -26,6 +29,12 @@ PQ::Command::~Command()
}
}
+PQ::CommandOptions::CommandOptions(std::size_t hash, const DB::CommandOptionsMap &) :
+ DB::CommandOptions(hash)
+{
+
+}
+
PQ::CommandOptions::CommandOptions(std::size_t hash,
unsigned int ft,
bool uc) :