diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 04:28:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 06:00:07 +0000 |
commit | b5d7b550fa17c62ec16ea34ee171b3ffaa8d04f1 (patch) | |
tree | 362d8503746a0af51daa76ad6ced4848af6253db | |
parent | Default (not supported) bulk upload implementation (diff) | |
download | libdbpp-postgresql-b5d7b550fa17c62ec16ea34ee171b3ffaa8d04f1.tar.bz2 libdbpp-postgresql-b5d7b550fa17c62ec16ea34ee171b3ffaa8d04f1.tar.xz libdbpp-postgresql-b5d7b550fa17c62ec16ea34ee171b3ffaa8d04f1.zip |
Non-const command getters
-rw-r--r-- | libpqpp/pq-connection.cpp | 4 | ||||
-rw-r--r-- | libpqpp/pq-connection.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp index be57cc5..4219496 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -128,13 +128,13 @@ PQ::Connection::ping() const DB::SelectCommand * -PQ::Connection::newSelectCommand(const std::string & sql) const +PQ::Connection::newSelectCommand(const std::string & sql) { return new SelectCommand(this, sql, pstmntNo++); } DB::ModifyCommand * -PQ::Connection::newModifyCommand(const std::string & sql) const +PQ::Connection::newModifyCommand(const std::string & sql) { return new ModifyCommand(this, sql, pstmntNo++); } diff --git a/libpqpp/pq-connection.h b/libpqpp/pq-connection.h index 85dde59..4354d47 100644 --- a/libpqpp/pq-connection.h +++ b/libpqpp/pq-connection.h @@ -27,8 +27,8 @@ namespace PQ { DB::BulkDeleteStyle bulkDeleteStyle() const override; DB::BulkUpdateStyle bulkUpdateStyle() const override; - DB::SelectCommand * newSelectCommand(const std::string & sql) const override; - DB::ModifyCommand * newModifyCommand(const std::string & sql) const override; + DB::SelectCommand * newSelectCommand(const std::string & sql) override; + DB::ModifyCommand * newModifyCommand(const std::string & sql) override; int64_t insertId() const override; |