Skip to content

Commit 6db0a2f

Browse files
author
jef
committedNov 3, 2009
fix QgsPostgresProvider::maximumValue()
git-svn-id: http://svn.osgeo.org/qgis/trunk@11904 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 9e229cf commit 6db0a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,13 +1869,13 @@ QVariant QgsPostgresProvider::maximumValue( int index )
18691869
if ( sqlWhereClause.isEmpty() )
18701870
{
18711871
sql = QString( "select max(%1) from %2" )
1872-
.arg( fieldExpression( fld ) )
1872+
.arg( quotedIdentifier( fld.name() ) )
18731873
.arg( mSchemaTableName );
18741874
}
18751875
else
18761876
{
18771877
sql = QString( "select max(%1) from %2 where %3" )
1878-
.arg( fieldExpression( fld ) )
1878+
.arg( quotedIdentifier( fld.name() ) )
18791879
.arg( mSchemaTableName )
18801880
.arg( sqlWhereClause );
18811881
}

0 commit comments

Comments
 (0)
Please sign in to comment.