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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Mar 27 13:40:08 EDT 2009


Author: jef
Date: 2009-03-27 13:40:08 -0400 (Fri, 27 Mar 2009)
New Revision: 10426

Modified:
   trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
Log:
fix feature count in postgres provider

Modified: trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
===================================================================
--- trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp	2009-03-27 17:37:59 UTC (rev 10425)
+++ trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp	2009-03-27 17:40:08 UTC (rev 10426)
@@ -622,7 +622,7 @@
   feature.setAttributeMap( mFeatureQueue.front().attributeMap() );
 
   mFeatureQueue.pop();
-  
+
   feature.setValid( true );
   return true;
 }
@@ -1873,6 +1873,8 @@
 
     connectionRW->PQexecNR( "DEALLOCATE addfeatures" );
     connectionRW->PQexecNR( "COMMIT" );
+
+    featuresCounted += flist.size();
   }
   catch ( PGException &e )
   {
@@ -1913,6 +1915,8 @@
     }
 
     connectionRW->PQexecNR( "COMMIT" );
+
+    featuresCounted -= id.size();
   }
   catch ( PGException &e )
   {



More information about the QGIS-commit mailing list