summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-27 14:14:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-02-28 20:20:54 +0000
commitd24f2d128f42a4252e5fe5d2bad135e0bc72d1db (patch)
treea257436769bc3b30e4ac4affcf7cad74fb266c4e
parentb9df2d7519ab1a36b00ce414ff8136b8bb11f7a8 (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 (cherry picked from commit 27e85dd314e02dc97612bf1682fccacaf0244127) Conflicts: connectivity/source/drivers/kab/KDriver.cxx Change-Id: I45175b2669d61eb4cee36d4456ccb69d0f11ef63 Reviewed-on: https://gerrit.libreoffice.org/14673 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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 4a55aa73eb7d..84ca13d7f00a 100644
--- a/connectivity/source/drivers/kab/KDriver.cxx
+++ b/connectivity/source/drivers/kab/KDriver.cxx
@@ -404,7 +404,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:");
+ return url.startsWith("sdbc:address:kab");
}
Sequence< DriverPropertyInfo > SAL_CALL KabDriver::getPropertyInfo( const OUString&, const Sequence< PropertyValue >& ) throw(SQLException, RuntimeException, std::exception)