diff options
Diffstat (limited to 'connectivity/source/drivers/postgresql')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_connection.cxx | 8 | ||||
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xkeys.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index 8fb63829bbb0..c148646e704d 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -181,13 +181,13 @@ static sal_Int32 readLogLevelFromConfiguration() OUString str; if( bootstrapHandle.getFrom( ASCII_STR( "PQ_LOGLEVEL" ), str ) ) { - if( str.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("NONE")) ) + if ( str == "NONE" ) loglevel = LogLevel::NONE; - else if( str.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ERROR")) ) + else if ( str == "ERROR" ) loglevel = LogLevel::ERROR; - else if( str.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("SQL")) ) + else if ( str == "SQL" ) loglevel = LogLevel::SQL; - else if( str.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("INFO")) ) + else if ( str == "INFO" ) loglevel = LogLevel::INFO; else { 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; } |