diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 04:06:50 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 06:00:07 +0000 |
commit | 62ab9bca59c3a26de2acf160728f12409ec8f946 (patch) | |
tree | 18293c7a8fdf9a5791763300c87da2e0d45740dc | |
parent | Reshuffle and add new exceptions (diff) | |
download | libdbpp-postgresql-62ab9bca59c3a26de2acf160728f12409ec8f946.tar.bz2 libdbpp-postgresql-62ab9bca59c3a26de2acf160728f12409ec8f946.tar.xz libdbpp-postgresql-62ab9bca59c3a26de2acf160728f12409ec8f946.zip |
Non-const execute and save points
-rw-r--r-- | libpqpp/pq-connection.cpp | 2 | ||||
-rw-r--r-- | libpqpp/pq-connection.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp index 3de0071..8fb6350 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -94,7 +94,7 @@ PQ::Connection::inTx() const } void -PQ::Connection::execute(const std::string & sql) const +PQ::Connection::execute(const std::string & sql) { checkResultFree(PQexec(conn, sql.c_str()), PGRES_COMMAND_OK, PGRES_TUPLES_OK); } diff --git a/libpqpp/pq-connection.h b/libpqpp/pq-connection.h index b7687cb..54ba52a 100644 --- a/libpqpp/pq-connection.h +++ b/libpqpp/pq-connection.h @@ -23,7 +23,7 @@ namespace PQ { int rollbackTx() const override; bool inTx() const override; void ping() const override; - void execute(const std::string & sql) const override; + void execute(const std::string & sql) override; DB::BulkDeleteStyle bulkDeleteStyle() const override; DB::BulkUpdateStyle bulkUpdateStyle() const override; |