diff --git a/src/providers/postgres/qgspostgresconnection.cpp b/src/providers/postgres/qgspostgresconnection.cpp index 49a77097e7b1..5b0156482b73 100644 --- a/src/providers/postgres/qgspostgresconnection.cpp +++ b/src/providers/postgres/qgspostgresconnection.cpp @@ -102,7 +102,7 @@ QgsPostgresConnection::QgsPostgresConnection( QString theConnName ) : uri.setConnection( host, port, database, username, password, ( QgsDataSourceURI::SSLmode ) sslmode ); } uri.setUseEstimatedMetadata( useEstimatedMetadata ); - mConnectionInfo = uri.connectionInfo(); + mConnectionInfo = uri.uri(); QgsDebugMsg( QString( "Connection info: '%1'." ).arg( mConnectionInfo ) ); }