mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
efc906e781
commit
5fa7eba698
@ -720,7 +720,7 @@ void QgsPostgresProvider::select(QgsRect * rect, bool useIntersect)
|
||||
}
|
||||
if(sqlWhereClause.length() > 0)
|
||||
{
|
||||
declare += " and " + sqlWhereClause;
|
||||
declare += " and (" + sqlWhereClause + ")";
|
||||
}
|
||||
|
||||
#ifdef QGISDEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user