summaryrefslogtreecommitdiff
path: root/libpqpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 04:06:50 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commit62ab9bca59c3a26de2acf160728f12409ec8f946 (patch)
tree18293c7a8fdf9a5791763300c87da2e0d45740dc /libpqpp
parentReshuffle and add new exceptions (diff)
downloadlibdbpp-postgresql-62ab9bca59c3a26de2acf160728f12409ec8f946.tar.bz2
libdbpp-postgresql-62ab9bca59c3a26de2acf160728f12409ec8f946.tar.xz
libdbpp-postgresql-62ab9bca59c3a26de2acf160728f12409ec8f946.zip
Non-const execute and save points
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/pq-connection.cpp2
-rw-r--r--libpqpp/pq-connection.h2
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;