Kaydet (Commit) 27e85dd3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

sdbc:address:kab URLs don't have a trailing ":"

broken since 4bf95c4c "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
üst d8a2a0b8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment