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-12 16:34:22 +0100 |
commit | a0dc62dd5b55e5ba8678cfac6a4e44205345f319 (patch) | |
tree | 6cfe1f2ae23ed7f7c8ea57a1a62238ea018ddd11 /connectivity/source/drivers/firebird | |
parent | 6164fa4f0d5944572cb61c3ab4382b876606f4d9 (diff) |
fb-sdbc: simplifying url comparison
Diffstat (limited to 'connectivity/source/drivers/firebird')
-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) |