summaryrefslogtreecommitdiff
path: root/libpqpp/pq-connection.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 20:08:22 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 20:08:22 +0000
commit409aeefb61795aa8f524d4371800a5bebb66a2e4 (patch)
tree7540ed88071dd5c7ebbae697171e3afc571a2a02 /libpqpp/pq-connection.cpp
parentAPI change to pass command options through (diff)
downloadlibdbpp-postgresql-409aeefb61795aa8f524d4371800a5bebb66a2e4.tar.bz2
libdbpp-postgresql-409aeefb61795aa8f524d4371800a5bebb66a2e4.tar.xz
libdbpp-postgresql-409aeefb61795aa8f524d4371800a5bebb66a2e4.zip
Use command options statement hash when it's available
Diffstat (limited to 'libpqpp/pq-connection.cpp')
-rw-r--r--libpqpp/pq-connection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp
index ec53981..590435e 100644
--- a/libpqpp/pq-connection.cpp
+++ b/libpqpp/pq-connection.cpp
@@ -97,19 +97,19 @@ PQ::Connection::ping() const
DB::SelectCommand *
-PQ::Connection::newSelectCommand(const std::string & sql, const DB::CommandOptions *)
+PQ::Connection::newSelectCommand(const std::string & sql, const DB::CommandOptions * opts)
{
// Yes, this is a hack
if (sql.find("libdbpp:no-cursor") != (std::string::size_type)-1) {
- return new BulkSelectCommand(this, sql, pstmntNo++);
+ return new BulkSelectCommand(this, sql, pstmntNo++, opts);
}
return new CursorSelectCommand(this, sql, pstmntNo++);
}
DB::ModifyCommand *
-PQ::Connection::newModifyCommand(const std::string & sql, const DB::CommandOptions *)
+PQ::Connection::newModifyCommand(const std::string & sql, const DB::CommandOptions * opts)
{
- return new ModifyCommand(this, sql, pstmntNo++);
+ return new ModifyCommand(this, sql, pstmntNo++, opts);
}
bool