summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Gomez <agomez@igalia.com>2013-06-04 13:09:47 +0300
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-07-10 14:09:29 +0100
commitfed119ccd408862fe568fb6932aa48d3b9a3680e (patch)
tree529aae2d45d8d4245d7b584e8bb71527f8bcaae5
parent03069f9fbe7d846f28dec824d496368eb44a1ab0 (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)