From ffd3c8e7dcf3bee3304d7c28d8102bf343b64c76 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 22 Apr 2018 15:13:33 +0100 Subject: C++17 Updates code largely in-keeping with updates to be C++17 in line with libadhocutil and libdbpp. --- libodbcpp/odbc-connection.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libodbcpp/odbc-connection.cpp') 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(*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(*this, sql); } std::string -- cgit v1.2.3