diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-04 15:50:25 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-17 21:15:18 +0100 |
commit | 97592e06b0444f8a3ff49da6a0f892f15a4ae394 (patch) | |
tree | 2ff995530cdc15a1012b21eb152cb78698524227 /connectivity/source/drivers/postgresql/pq_driver.cxx | |
parent | c82ed24984cb47e907949ce51920fefa69fe9c49 (diff) |
postresql: acceptsURL: check for string prefix, not string equality
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_driver.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx index d6d9a3640f54..7cca80d87120 100644 --- a/connectivity/source/drivers/postgresql/pq_driver.cxx +++ b/connectivity/source/drivers/postgresql/pq_driver.cxx @@ -1,3 +1,4 @@ +/* -*- 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( |