mysqlc: std::auto_ptr -> std::unique_ptr
Change-Id: I0eb5f9fab5955d1f5790d3f5d269e069aff1c201
This commit is contained in:
@@ -215,7 +215,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
|
|||||||
0,
|
0,
|
||||||
Any());
|
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 session sql_mode='ANSI_QUOTES'");
|
||||||
stmt->executeUpdate("SET NAMES utf8");
|
stmt->executeUpdate("SET NAMES utf8");
|
||||||
}
|
}
|
||||||
|
@@ -73,7 +73,7 @@ namespace connectivity
|
|||||||
struct ConnectionSettings
|
struct ConnectionSettings
|
||||||
{
|
{
|
||||||
rtl_TextEncoding encoding;
|
rtl_TextEncoding encoding;
|
||||||
std::auto_ptr<sql::Connection> cppConnection;
|
std::unique_ptr<sql::Connection> cppConnection;
|
||||||
OUString schema;
|
OUString schema;
|
||||||
OUString quoteIdentifier;
|
OUString quoteIdentifier;
|
||||||
OUString connectionURL;
|
OUString connectionURL;
|
||||||
|
Reference in New Issue
Block a user