diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-22 23:24:35 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-22 23:24:35 +0100 |
commit | 493c15e183f137f8148791005ffeecd4e5e07d7a (patch) | |
tree | a3d39e4108736d34dd867939cd953f72c119a9e0 | |
parent | Database mocking base classes migrated in. (diff) | |
download | libdbpp-493c15e183f137f8148791005ffeecd4e5e07d7a.tar.bz2 libdbpp-493c15e183f137f8148791005ffeecd4e5e07d7a.tar.xz libdbpp-493c15e183f137f8148791005ffeecd4e5e07d7a.zip |
Connector compatibility fix
-rw-r--r-- | libdbpp/selectcommand.cpp | 4 | ||||
-rw-r--r-- | 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<ColumnPtr, boost::multi_index::indexed_by< boost::multi_index::ordered_unique<boost::multi_index::member<DB::Column, const unsigned int, &DB::Column::colNo>>, |