Kaydet (Commit) 97592e06 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

postresql: acceptsURL: check for string prefix, not string equality

üst c82ed249
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* $RCSfile: pq_driver.cxx,v $
......@@ -149,7 +150,7 @@ Reference< XConnection > Driver::connect(
sal_Bool Driver::acceptsURL( const ::rtl::OUString& url )
throw (SQLException, RuntimeException)
{
return url.compareToAscii( RTL_CONSTASCII_STRINGPARAM( "sdbc:postgresql:" ) ) == 0;
return url.matchAsciiL( RTL_CONSTASCII_STRINGPARAM( "sdbc:postgresql:" ) );
}
Sequence< DriverPropertyInfo > Driver::getPropertyInfo(
......
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