diff options
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_databasemetadata.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_databasemetadata.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx index b0b5d1a9d74e..4cc9b1578cf6 100644 --- a/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_databasemetadata.cxx @@ -1475,7 +1475,7 @@ static void columnMetaData2DatabaseTypeDescription( queryBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "SELECT oid,typtype,typname FROM pg_TYPE WHERE " ) ); while( rs->next() ) { - if( row->getString( 9 ).equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("d")) && oidMap.find( row->getInt( 12 ) ) == oidMap.end() ) + if( row->getString( 9 ) == "d" && oidMap.find( row->getInt( 12 ) ) == oidMap.end() ) { oidMap[row->getInt(12)] = DatabaseTypeDescription(); if( domains ) @@ -1646,7 +1646,7 @@ static void columnMetaData2DatabaseTypeDescription( row[1] <<= sNewSchema; row[2] <<= sNewTable; row[3] <<= xRow->getString(3); - if( xRow->getString(8).equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("d")) ) + if( xRow->getString(8) == "d" ) { DatabaseTypeDescription desc( domainMap[xRow->getInt(11)] ); type = typeNameToDataType( desc.typeName, desc.typeType ); |