summaryrefslogtreecommitdiff
path: root/mysqlc/source
diff options
context:
space:
mode:
Diffstat (limited to 'mysqlc/source')
-rw-r--r--mysqlc/source/mysqlc_connection.cxx2
-rw-r--r--mysqlc/source/mysqlc_connection.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx
index 9773703f6bd8..588fb6e5d1a3 100644
--- a/mysqlc/source/mysqlc_connection.cxx
+++ b/mysqlc/source/mysqlc_connection.cxx
@@ -215,7 +215,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
0,
Any());
}
- std::auto_ptr<sql::Statement> stmt(m_settings.cppConnection->createStatement());
+ std::unique_ptr<sql::Statement> stmt(m_settings.cppConnection->createStatement());
stmt->executeUpdate("SET session sql_mode='ANSI_QUOTES'");
stmt->executeUpdate("SET NAMES utf8");
}
diff --git a/mysqlc/source/mysqlc_connection.hxx b/mysqlc/source/mysqlc_connection.hxx
index 05eb3bd37bee..5a20051984c3 100644
--- a/mysqlc/source/mysqlc_connection.hxx
+++ b/mysqlc/source/mysqlc_connection.hxx
@@ -73,7 +73,7 @@ namespace connectivity
struct ConnectionSettings
{
rtl_TextEncoding encoding;
- std::auto_ptr<sql::Connection> cppConnection;
+ std::unique_ptr<sql::Connection> cppConnection;
OUString schema;
OUString quoteIdentifier;
OUString connectionURL;