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