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
commit686afab201652e9b9d88c67784c14e6f8b1844f9 (patch)
tree5bd84526b9bf86f922e0600daa892313d368032c
parentNon-const command getters (diff)
downloadlibdbpp-686afab201652e9b9d88c67784c14e6f8b1844f9.tar.bz2
libdbpp-686afab201652e9b9d88c67784c14e6f8b1844f9.tar.xz
libdbpp-686afab201652e9b9d88c67784c14e6f8b1844f9.zip
Non-const insertId
-rw-r--r--libdbpp/connection.cpp2
-rw-r--r--libdbpp/connection.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdbpp/connection.cpp b/libdbpp/connection.cpp
index b267af1..979c30f 100644
--- a/libdbpp/connection.cpp
+++ b/libdbpp/connection.cpp
@@ -94,7 +94,7 @@ DB::Connection::resolvePlugin(const std::type_info &, const std::string & name)
}
int64_t
-DB::Connection::insertId() const
+DB::Connection::insertId()
{
throw std::runtime_error("insertId not implemented for this driver.");
}
diff --git a/libdbpp/connection.h b/libdbpp/connection.h
index 2ef53ac..700323b 100644
--- a/libdbpp/connection.h
+++ b/libdbpp/connection.h
@@ -134,7 +134,7 @@ namespace DB {
virtual size_t bulkUploadData(const char *, size_t) const;
/// Return the Id used in the last insert
- virtual int64_t insertId() const;
+ virtual int64_t insertId();
/// Patch one table's contents into another.
PatchResult patchTable(TablePatch * tp);