summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Gomez <agomez@igalia.com>2013-06-04 13:09:47 +0300
committerJavier Fernandez <jfernandez@igalia.com>2013-06-06 09:37:44 +0000
commitf9755e8cb2548a93f7c34306206944350596dc0c (patch)
tree8b6ce7b5547dddb8c26c8f94efdb2dec71613b07
parent31870fee1d9beef0ce537061361fef8619bf36ff (diff)
fb-sdbc: simplifying url comparison
-rw-r--r--connectivity/source/drivers/firebird/FDriver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/firebird/FDriver.cxx b/connectivity/source/drivers/firebird/FDriver.cxx
index d58fb20cc45a..6aa28955a642 100644
--- a/connectivity/source/drivers/firebird/FDriver.cxx
+++ b/connectivity/source/drivers/firebird/FDriver.cxx
@@ -137,7 +137,7 @@ sal_Bool SAL_CALL FirebirdDriver::acceptsURL( const ::rtl::OUString& url )
{
// here we have to look if we support this url format
// change the URL format to your needs, but please aware that the first on who accepts the URl wins.
- return (!url.compareTo(::rtl::OUString("sdbc:firebird:"),14));
+ return url.startsWith("sdbc:firebird:");
}
// --------------------------------------------------------------------------------
Sequence< DriverPropertyInfo > SAL_CALL FirebirdDriver::getPropertyInfo( const ::rtl::OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException)