[QGIS Commit] r13499 - trunk/qgis/src/providers/postgres

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun May 16 10:22:08 EDT 2010


Author: jef
Date: 2010-05-16 10:22:06 -0400 (Sun, 16 May 2010)
New Revision: 13499

Modified:
   trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
Log:
postgres provider: fix feature count, when subset string is set

Modified: trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
===================================================================
--- trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp	2010-05-16 11:19:13 UTC (rev 13498)
+++ trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp	2010-05-16 14:22:06 UTC (rev 13499)
@@ -2767,7 +2767,7 @@
   // a thread the task of getting the full count.
   QString sql;
 
-  if ( !isQuery && mUseEstimatedMetadata )
+  if ( !isQuery && mUseEstimatedMetadata && sqlWhereClause.isEmpty() )
   {
     sql = QString( "select reltuples::int from pg_catalog.pg_class where oid=regclass(%1)::oid" ).arg( quotedValue( mQuery ) );
   }



More information about the QGIS-commit mailing list