diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-01 18:43:02 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-01 18:43:02 +0000 |
commit | 039ae22ed427255de42645c3eb5599b816332a78 (patch) | |
tree | 06ca50133d2cf7560f38de5884a4e5c5a9638dd5 | |
parent | Register mock db implementations (diff) | |
download | libdbpp-postgresql-039ae22ed427255de42645c3eb5599b816332a78.tar.bz2 libdbpp-postgresql-039ae22ed427255de42645c3eb5599b816332a78.tar.xz libdbpp-postgresql-039ae22ed427255de42645c3eb5599b816332a78.zip |
API change to pass command options through
-rw-r--r-- | libpqpp/pq-connection.cpp | 6 | ||||
-rw-r--r-- | libpqpp/pq-connection.h | 6 |
2 files changed, 6 insertions, 6 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++); } diff --git a/libpqpp/pq-connection.h b/libpqpp/pq-connection.h index 1e9f265..9a2cf6d 100644 --- a/libpqpp/pq-connection.h +++ b/libpqpp/pq-connection.h @@ -25,12 +25,12 @@ namespace PQ { void commitTxInt() override; void rollbackTxInt() override; void ping() const override; - void execute(const std::string & sql) override; + void execute(const std::string & sql, const DB::CommandOptions *) override; DB::BulkDeleteStyle bulkDeleteStyle() const override; DB::BulkUpdateStyle bulkUpdateStyle() const override; - DB::SelectCommand * newSelectCommand(const std::string & sql) override; - DB::ModifyCommand * newModifyCommand(const std::string & sql) override; + DB::SelectCommand * newSelectCommand(const std::string & sql, const DB::CommandOptions *) override; + DB::ModifyCommand * newModifyCommand(const std::string & sql, const DB::CommandOptions *) override; int64_t insertId() override; |