[QGIS Commit] r11904 - trunk/qgis/src/providers/postgres
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Nov 3 10:54:37 EST 2009
Author: jef
Date: 2009-11-03 10:54:36 -0500 (Tue, 03 Nov 2009)
New Revision: 11904
Modified:
trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
Log:
fix QgsPostgresProvider::maximumValue()
Modified: trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
===================================================================
--- trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp 2009-11-03 13:43:02 UTC (rev 11903)
+++ trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp 2009-11-03 15:54:36 UTC (rev 11904)
@@ -1869,13 +1869,13 @@
if ( sqlWhereClause.isEmpty() )
{
sql = QString( "select max(%1) from %2" )
- .arg( fieldExpression( fld ) )
+ .arg( quotedIdentifier( fld.name() ) )
.arg( mSchemaTableName );
}
else
{
sql = QString( "select max(%1) from %2 where %3" )
- .arg( fieldExpression( fld ) )
+ .arg( quotedIdentifier( fld.name() ) )
.arg( mSchemaTableName )
.arg( sqlWhereClause );
}
More information about the QGIS-commit
mailing list