summaryrefslogtreecommitdiff
path: root/libsqlitepp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 04:35:17 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commita332399e83efe03ae4f203b89141f6af0d19e60b (patch)
tree318240be9733e5e4dfcd527126cc9ec3751a3cc5 /libsqlitepp
parentNon-const command getters (diff)
downloadlibdbpp-sqlite-a332399e83efe03ae4f203b89141f6af0d19e60b.tar.bz2
libdbpp-sqlite-a332399e83efe03ae4f203b89141f6af0d19e60b.tar.xz
libdbpp-sqlite-a332399e83efe03ae4f203b89141f6af0d19e60b.zip
Non-const insertId
Diffstat (limited to 'libsqlitepp')
-rw-r--r--libsqlitepp/sqlite-connection.cpp2
-rw-r--r--libsqlitepp/sqlite-connection.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libsqlitepp/sqlite-connection.cpp b/libsqlitepp/sqlite-connection.cpp
index a4c10b7..a284a2e 100644
--- a/libsqlitepp/sqlite-connection.cpp
+++ b/libsqlitepp/sqlite-connection.cpp
@@ -111,7 +111,7 @@ SQLite::Connection::newModifyCommand(const std::string & sql)
}
int64_t
-SQLite::Connection::insertId() const
+SQLite::Connection::insertId()
{
return sqlite3_last_insert_rowid(db);
}
diff --git a/libsqlitepp/sqlite-connection.h b/libsqlitepp/sqlite-connection.h
index 584d0a4..4f705a3 100644
--- a/libsqlitepp/sqlite-connection.h
+++ b/libsqlitepp/sqlite-connection.h
@@ -28,7 +28,7 @@ namespace SQLite {
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;
sqlite3 * db;