From 369a3f4c08ec6ed996019cae98ac5a5df04a90aa Mon Sep 17 00:00:00 2001
From: Dan Goodliffe <dan@randomdan.homeip.net>
Date: Tue, 29 Dec 2015 04:35:17 +0000
Subject: Non-const insertId

---
 libmysqlpp/my-connection.cpp | 2 +-
 libmysqlpp/my-connection.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'libmysqlpp')

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;
 
-- 
cgit v1.2.3