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 | 14477ccf6a37148a86b61940c38aebc7ec80f736 (patch) | |
tree | 5b91eac0aab17db6c41286a23b3bbfb64fdf1765 /libpqpp | |
parent | Reshuffle and add new exceptions (diff) | |
download | libdbpp-postgresql-14477ccf6a37148a86b61940c38aebc7ec80f736.tar.bz2 libdbpp-postgresql-14477ccf6a37148a86b61940c38aebc7ec80f736.tar.xz libdbpp-postgresql-14477ccf6a37148a86b61940c38aebc7ec80f736.zip |
Non-const execute and save points
Diffstat (limited to 'libpqpp')
-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; |