diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 04:35:17 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 06:00:07 +0000 |
commit | adbffac2d918c31c4792f8c06b86402fb27a29d2 (patch) | |
tree | 391451fc29127a777c2783cb9c762540fbe7b25f | |
parent | Non-const command getters (diff) | |
download | libdbpp-postgresql-adbffac2d918c31c4792f8c06b86402fb27a29d2.tar.bz2 libdbpp-postgresql-adbffac2d918c31c4792f8c06b86402fb27a29d2.tar.xz libdbpp-postgresql-adbffac2d918c31c4792f8c06b86402fb27a29d2.zip |
Non-const insertId
-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 4219496..42fc1aa 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -204,7 +204,7 @@ PQ::Connection::bulkUploadData(const char * data, size_t len) const } int64_t -PQ::Connection::insertId() const +PQ::Connection::insertId() { SelectCommand getId(this, "SELECT lastval()", pstmntNo++); int64_t id = -1; diff --git a/libpqpp/pq-connection.h b/libpqpp/pq-connection.h index 4354d47..65fd7b0 100644 --- a/libpqpp/pq-connection.h +++ b/libpqpp/pq-connection.h @@ -30,7 +30,7 @@ namespace PQ { DB::SelectCommand * newSelectCommand(const std::string & sql) override; DB::ModifyCommand * newModifyCommand(const std::string & sql) override; - int64_t insertId() const override; + int64_t insertId() override; void beginBulkUpload(const char *, const char *) override; void endBulkUpload(const char *) override; |