summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/jdbc/JDriver.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-05-29 07:59:27 +0000
committerFrank Schönheit <fs@openoffice.org>2001-05-29 07:59:27 +0000
commit97cbddc9f6782e01e6c25a189ea9259c202796a1 (patch)
treec3c9f4afbc1901bbf63f77c9beadc76df6736290 /connectivity/source/drivers/jdbc/JDriver.cxx
parent97d7758c8188d8788fe58fc1b349d439be3b15f8 (diff)
#86082# changed acceptURL so that 'jdbc:' is accepted, too
Diffstat (limited to 'connectivity/source/drivers/jdbc/JDriver.cxx')
-rw-r--r--connectivity/source/drivers/jdbc/JDriver.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/connectivity/source/drivers/jdbc/JDriver.cxx b/connectivity/source/drivers/jdbc/JDriver.cxx
index bb348caa902f..e98c33912f76 100644
--- a/connectivity/source/drivers/jdbc/JDriver.cxx
+++ b/connectivity/source/drivers/jdbc/JDriver.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: JDriver.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: oj $ $Date: 2001-05-17 09:13:17 $
+ * last change: $Author: fs $ $Date: 2001-05-29 08:59:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -250,7 +250,8 @@ sal_Bool SAL_CALL java_sql_Driver::acceptsURL( const ::rtl::OUString& url ) thro
{
// don't ask the real driver for the url
// I feel responsible for all jdbc url's
- return (!url.compareTo(::rtl::OUString::createFromAscii("jdbc:"),5) && url.getLength() > 5);
+ static const ::rtl::OUString s_sJdbcPrefix = ::rtl::OUString::createFromAscii("jdbc:");
+ return 0 == url.compareTo(s_sJdbcPrefix, 5);
}
// -------------------------------------------------------------------------
Sequence< DriverPropertyInfo > SAL_CALL java_sql_Driver::getPropertyInfo( const ::rtl::OUString& url,