summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-mock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/odbc-mock.cpp')
-rw-r--r--libodbcpp/odbc-mock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libodbcpp/odbc-mock.cpp b/libodbcpp/odbc-mock.cpp
index 0ab6ee6..cf28570 100644
--- a/libodbcpp/odbc-mock.cpp
+++ b/libodbcpp/odbc-mock.cpp
@@ -13,10 +13,10 @@ Mock::Mock(const std::string & b, const std::string & masterdb, const std::strin
}
AdHocFormatter(MockConnStr, "%?;Database=%?");
-DB::Connection *
+DB::ConnectionPtr
Mock::openConnection() const
{
- return new Connection(MockConnStr::get(base, testDbName));
+ return std::make_shared<Connection>(MockConnStr::get(base, testDbName));
}
Mock::~Mock()