summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-27 14:14:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-27 14:14:55 +0100
commit27e85dd314e02dc97612bf1682fccacaf0244127 (patch)
tree72756546a0b2359ccd0f359ba6e512c045f6b940 /connectivity
parentd8a2a0b84a9aa570116febf23a6f1d6430fec287 (diff)
sdbc:address:kab URLs don't have a trailing ":"
broken since 4bf95c4c31dd871065d4042028a4b3ae476dab70 "make use of startsWith()" where the tricky !url.compareTo(::rtl::OUString("sdbc:address:kab:"), 16) was replaced with url.startsWith("sdbc:address:kab:") even though the original exempted the trailing ":" from the comparison Change-Id: I45175b2669d61eb4cee36d4456ccb69d0f11ef63
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/kab/KDriver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/kab/KDriver.cxx b/connectivity/source/drivers/kab/KDriver.cxx
index d28c0c88b6e6..e13bbac4a256 100644
--- a/connectivity/source/drivers/kab/KDriver.cxx
+++ b/connectivity/source/drivers/kab/KDriver.cxx
@@ -414,7 +414,7 @@ sal_Bool SAL_CALL KabDriver::acceptsURL( const OUString& url )
return sal_False;
// here we have to look whether we support this URL format
- return url.startsWith("sdbc:address:" KAB_SERVICE_NAME ":");
+ return url.startsWith("sdbc:address:" KAB_SERVICE_NAME);
}
Sequence< DriverPropertyInfo > SAL_CALL KabDriver::getPropertyInfo( const OUString&, const Sequence< PropertyValue >& ) throw(SQLException, RuntimeException, std::exception)