[QGIS Commit] r10563 - trunk/qgis/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Apr 14 10:55:49 EDT 2009
Author: jef
Date: 2009-04-14 10:55:49 -0400 (Tue, 14 Apr 2009)
New Revision: 10563
Modified:
trunk/qgis/src/core/qgsdatasourceuri.cpp
Log:
fix QgsDataSourceUri::publicSource() for postgres provider layers
Modified: trunk/qgis/src/core/qgsdatasourceuri.cpp
===================================================================
--- trunk/qgis/src/core/qgsdatasourceuri.cpp 2009-04-14 12:54:07 UTC (rev 10562)
+++ trunk/qgis/src/core/qgsdatasourceuri.cpp 2009-04-14 14:55:49 UTC (rev 10563)
@@ -183,10 +183,7 @@
QRegExp regexp;
regexp.setMinimal( true );
QString safeName( aUri );
- //this works for postgres, ingres, mysql,
- if (( aUri.contains( "PG:" ) )
- || ( aUri.contains( "driver=ingres" ) )
- || ( aUri.contains( "MySQL:" ) ) )
+ if ( aUri.contains( " password=" ) )
{
regexp.setPattern( " password=.* " );
safeName.replace( regexp, " " );
More information about the QGIS-commit
mailing list