diff options
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_connection.cxx | 2 | ||||
-rw-r--r-- | mysqlc/source/mysqlc_driver.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx index c3643faa045f..9c0b1831c28f 100644 --- a/mysqlc/source/mysqlc_connection.cxx +++ b/mysqlc/source/mysqlc_connection.cxx @@ -118,7 +118,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > // parse url. Url has the following format: // external server: sdbc:mysqlc:[hostname]:[port]/[dbname] - if (!url.compareTo(OUString(MYSQLC_URI_PREFIX), sizeof(MYSQLC_URI_PREFIX)-1)) { + if (url.startsWith(MYSQLC_URI_PREFIX)) { nIndex = 12; } else { bEmbedded = sal_True; diff --git a/mysqlc/source/mysqlc_driver.cxx b/mysqlc/source/mysqlc_driver.cxx index 343949dfe920..be6d927c99fc 100644 --- a/mysqlc/source/mysqlc_driver.cxx +++ b/mysqlc/source/mysqlc_driver.cxx @@ -243,7 +243,7 @@ sal_Bool SAL_CALL MysqlCDriver::acceptsURL(const OUString& url) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::acceptsURL"); - return (!url.compareTo(OUString("sdbc:mysqlc:"), sizeof("sdbc:mysqlc:")-1)); + return url.startsWith("sdbc:mysqlc:"); } /* }}} */ |