From 493c15e183f137f8148791005ffeecd4e5e07d7a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 22 Sep 2015 23:24:35 +0100 Subject: Connector compatibility fix --- libdbpp/selectcommand.cpp | 4 ++-- libdbpp/selectcommand.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libdbpp/selectcommand.cpp b/libdbpp/selectcommand.cpp index f6b1d33..7e72ee5 100644 --- a/libdbpp/selectcommand.cpp +++ b/libdbpp/selectcommand.cpp @@ -61,9 +61,9 @@ DB::SelectCommand::columnCount() const return columns->size(); } -void +DB::ColumnPtr DB::SelectCommand::insertColumn(ColumnPtr col) { - columns->insert(col); + return *columns->insert(col).first; } diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h index 8ebaf9c..ff6f529 100644 --- a/libdbpp/selectcommand.h +++ b/libdbpp/selectcommand.h @@ -21,7 +21,7 @@ namespace DB { const Column & operator[](const Glib::ustring &) const; unsigned int columnCount() const; unsigned int getOrdinal(const Glib::ustring &) const; - void insertColumn(ColumnPtr); + ColumnPtr insertColumn(ColumnPtr); typedef boost::multi_index_container>, -- cgit v1.2.3