diff options
author | Andres Gomez <agomez@igalia.com> | 2013-06-04 13:09:47 +0300 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-16 16:40:06 +0200 |
commit | 6f072af34f81275a5e690a8180ac74e7b7731424 (patch) | |
tree | efcf2a0b8eec4bdaec8a3a3c0428d742e3d35805 | |
parent | 0f9d8be00959d5b8cb616a9ebb161f53a5419233 (diff) |
fb-sdbc: simplifying url comparison
-rw-r--r-- | connectivity/source/drivers/firebird/FDriver.cxx | 2 |
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) |