From a2713fd0ed7129bff1a3390172b2649921ff630b Mon Sep 17 00:00:00 2001 From: Jeremy Palmer Date: Thu, 22 Sep 2011 15:41:08 +1200 Subject: [PATCH] Fix from 49e4e998c6 to ensure that all postgis connection parameters are copied in the QgsPostgresConnection constructor i.e estimatedmetadata. --- src/providers/postgres/qgspostgresconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); }