Set sslmode to prefer for postgis connections

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8788 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2008-07-15 19:40:00 +00:00
parent 5e55aca839
commit 1bde1ceea1

View File

@ -230,6 +230,7 @@ QString QgsDataSourceURI::connInfo() const
connInfo += " host=" + mHost; connInfo += " host=" + mHost;
if( mPort!="" ) if( mPort!="" )
connInfo += " port=" + mPort; connInfo += " port=" + mPort;
connInfo += " sslmode=prefer";
} }
if( mUsername != "" ) if( mUsername != "" )