summaryrefslogtreecommitdiff
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
commit369a3f4c08ec6ed996019cae98ac5a5df04a90aa (patch)
tree282469de6934029ac1369c1b58531a8b153c0f4b
parentNon-const command getters (diff)
downloadlibdbpp-mysql-369a3f4c08ec6ed996019cae98ac5a5df04a90aa.tar.bz2
libdbpp-mysql-369a3f4c08ec6ed996019cae98ac5a5df04a90aa.tar.xz
libdbpp-mysql-369a3f4c08ec6ed996019cae98ac5a5df04a90aa.zip
Non-const insertId
-rw-r--r--libmysqlpp/my-connection.cpp2
-rw-r--r--libmysqlpp/my-connection.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libmysqlpp/my-connection.cpp b/libmysqlpp/my-connection.cpp
index 7f11a32..c6ab993 100644
--- a/libmysqlpp/my-connection.cpp
+++ b/libmysqlpp/my-connection.cpp
@@ -267,7 +267,7 @@ MySQL::Connection::bulkUploadData(const char * data, size_t len) const
}
int64_t
-MySQL::Connection::insertId() const
+MySQL::Connection::insertId()
{
return mysql_insert_id(&conn);
}
diff --git a/libmysqlpp/my-connection.h b/libmysqlpp/my-connection.h
index 4bba394..238200e 100644
--- a/libmysqlpp/my-connection.h
+++ b/libmysqlpp/my-connection.h
@@ -35,7 +35,7 @@ namespace MySQL {
void endBulkUpload(const char *) override;
size_t bulkUploadData(const char *, size_t) const override;
- int64_t insertId() const override;
+ int64_t insertId() override;
mutable MYSQL conn;