summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xkeys.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xkeys.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xkeys.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xkeys.cxx b/connectivity/source/drivers/postgresql/pq_xkeys.cxx
index 9ad71b10c82c..314924d9d672 100644
--- a/connectivity/source/drivers/postgresql/pq_xkeys.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xkeys.cxx
@@ -117,9 +117,9 @@ Keys::~Keys()
static sal_Int32 string2keytype( const rtl::OUString &type )
{
sal_Int32 ret = com::sun::star::sdbcx::KeyType::UNIQUE;
- if( type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("p")) )
+ if ( type == "p" )
ret = com::sun::star::sdbcx::KeyType::PRIMARY;
- else if( type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("f")) )
+ else if ( type == "f" )
ret = com::sun::star::sdbcx::KeyType::FOREIGN;
return ret;
}