summaryrefslogtreecommitdiff
path: root/libpqpp/pq-connection.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 18:43:02 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 18:43:02 +0000
commitc144d27d10571b9ff7b55056ef71a4112b964818 (patch)
treed234c1d872b35cfd5433eb59ea62eac62a4a8834 /libpqpp/pq-connection.cpp
parentRegister mock db implementations (diff)
downloadlibdbpp-postgresql-c144d27d10571b9ff7b55056ef71a4112b964818.tar.bz2
libdbpp-postgresql-c144d27d10571b9ff7b55056ef71a4112b964818.tar.xz
libdbpp-postgresql-c144d27d10571b9ff7b55056ef71a4112b964818.zip
API change to pass command options through
Diffstat (limited to 'libpqpp/pq-connection.cpp')
-rw-r--r--libpqpp/pq-connection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp
index b7360e0..ec53981 100644
--- a/libpqpp/pq-connection.cpp
+++ b/libpqpp/pq-connection.cpp
@@ -63,7 +63,7 @@ PQ::Connection::rollbackTxInt()
}
void
-PQ::Connection::execute(const std::string & sql)
+PQ::Connection::execute(const std::string & sql, const DB::CommandOptions *)
{
checkResultFree(PQexec(conn, sql.c_str()), PGRES_COMMAND_OK, PGRES_TUPLES_OK);
}
@@ -97,7 +97,7 @@ PQ::Connection::ping() const
DB::SelectCommand *
-PQ::Connection::newSelectCommand(const std::string & sql)
+PQ::Connection::newSelectCommand(const std::string & sql, const DB::CommandOptions *)
{
// Yes, this is a hack
if (sql.find("libdbpp:no-cursor") != (std::string::size_type)-1) {
@@ -107,7 +107,7 @@ PQ::Connection::newSelectCommand(const std::string & sql)
}
DB::ModifyCommand *
-PQ::Connection::newModifyCommand(const std::string & sql)
+PQ::Connection::newModifyCommand(const std::string & sql, const DB::CommandOptions *)
{
return new ModifyCommand(this, sql, pstmntNo++);
}