From a332399e83efe03ae4f203b89141f6af0d19e60b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 29 Dec 2015 04:35:17 +0000 Subject: Non-const insertId --- libsqlitepp/sqlite-connection.cpp | 2 +- libsqlitepp/sqlite-connection.h | 2 +- 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; -- cgit v1.2.3