summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_connection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_connection.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_connection.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index e9cd423a55d1..8910f8afe5d5 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -148,7 +148,7 @@ static sal_Int32 readLogLevelFromConfiguration()
OUString fileName;
osl_getModuleURLFromAddress(
(void*) readLogLevelFromConfiguration, (rtl_uString **) &fileName );
- fileName = OUString( fileName.getStr(), fileName.lastIndexOf( '/' )+1 );
+ fileName = fileName.copy( fileName.lastIndexOf( '/' )+1 );
fileName += "postgresql-sdbc.ini";
rtl::Bootstrap bootstrapHandle( fileName );
@@ -558,7 +558,7 @@ void Connection::initialize( const Sequence< Any >& aArguments )
free(err);
}
else
- errorMessage = OUString("#no error message#");
+ errorMessage = "#no error message#";
OUStringBuffer buf( 128 );
buf.appendAscii( "Error in database URL '" );
buf.append( url );