diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-22 15:13:33 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-22 15:13:33 +0100 |
commit | ffd3c8e7dcf3bee3304d7c28d8102bf343b64c76 (patch) | |
tree | 78f3cc6ce79e1aad4da917865c4a2669aac90e93 /libodbcpp/odbc-connection.cpp | |
parent | Mark potential fall-through (diff) | |
download | libdbpp-odbc-ffd3c8e7dcf3bee3304d7c28d8102bf343b64c76.tar.bz2 libdbpp-odbc-ffd3c8e7dcf3bee3304d7c28d8102bf343b64c76.tar.xz libdbpp-odbc-ffd3c8e7dcf3bee3304d7c28d8102bf343b64c76.zip |
C++17libdbpp-odbc-1.2.0
Updates code largely in-keeping with updates to be C++17 in line with
libadhocutil and libdbpp.
Diffstat (limited to 'libodbcpp/odbc-connection.cpp')
-rw-r--r-- | libodbcpp/odbc-connection.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libodbcpp/odbc-connection.cpp b/libodbcpp/odbc-connection.cpp index 48a1118..9a4a82d 100644 --- a/libodbcpp/odbc-connection.cpp +++ b/libodbcpp/odbc-connection.cpp @@ -139,16 +139,16 @@ ODBC::Connection::bulkUpdateStyle() const return thinkUpdStyle; } -DB::SelectCommand * -ODBC::Connection::newSelectCommand(const std::string & sql, const DB::CommandOptions *) +DB::SelectCommandPtr +ODBC::Connection::select(const std::string & sql, const DB::CommandOptionsCPtr &) { - return new ODBC::SelectCommand(*this, sql); + return std::make_shared<ODBC::SelectCommand>(*this, sql); } -DB::ModifyCommand * -ODBC::Connection::newModifyCommand(const std::string & sql, const DB::CommandOptions *) +DB::ModifyCommandPtr +ODBC::Connection::modify(const std::string & sql, const DB::CommandOptionsCPtr &) { - return new ODBC::ModifyCommand(*this, sql); + return std::make_shared<ODBC::ModifyCommand>(*this, sql); } std::string |