Wrap query subset clause in parentheses to preserve grouping of

a compound clause when ANDing with selection rectangle clause.


git-svn-id: http://svn.osgeo.org/qgis/trunk@4085 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
telwertowski 2005-10-15 05:45:16 +00:00
parent efc906e781
commit 5fa7eba698

View File

@ -720,7 +720,7 @@ void QgsPostgresProvider::select(QgsRect * rect, bool useIntersect)
}
if(sqlWhereClause.length() > 0)
{
declare += " and " + sqlWhereClause;
declare += " and (" + sqlWhereClause + ")";
}
#ifdef QGISDEBUG