diff options
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 |