summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mysql/YDriver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/mysql/YDriver.cxx')
-rw-r--r--connectivity/source/drivers/mysql/YDriver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/mysql/YDriver.cxx b/connectivity/source/drivers/mysql/YDriver.cxx
index 588845ecd201..5e854c6c5fec 100644
--- a/connectivity/source/drivers/mysql/YDriver.cxx
+++ b/connectivity/source/drivers/mysql/YDriver.cxx
@@ -115,12 +115,12 @@ namespace connectivity
bool isOdbcUrl(const OUString& _sUrl)
{
- return _sUrl.copy(0,16) == "sdbc:mysql:odbc:";
+ return _sUrl.startsWith("sdbc:mysql:odbc:");
}
bool isNativeUrl(const OUString& _sUrl)
{
- return (!_sUrl.compareTo(OUString("sdbc:mysql:mysqlc:"), sizeof("sdbc:mysql:mysqlc:")-1));
+ return _sUrl.startsWith("sdbc:mysql:mysqlc:");
}
T_DRIVERTYPE lcl_getDriverType(const OUString& _sUrl)