Skip to content

Commit 9addfdb

Browse files
author
jef
committed
fix feature count in postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@10426 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a2d3b38 commit 9addfdb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ bool QgsPostgresProvider::nextFeature( QgsFeature& feature )
622622
feature.setAttributeMap( mFeatureQueue.front().attributeMap() );
623623

624624
mFeatureQueue.pop();
625-
625+
626626
feature.setValid( true );
627627
return true;
628628
}
@@ -1873,6 +1873,8 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList & flist )
18731873

18741874
connectionRW->PQexecNR( "DEALLOCATE addfeatures" );
18751875
connectionRW->PQexecNR( "COMMIT" );
1876+
1877+
featuresCounted += flist.size();
18761878
}
18771879
catch ( PGException &e )
18781880
{
@@ -1913,6 +1915,8 @@ bool QgsPostgresProvider::deleteFeatures( const QgsFeatureIds & id )
19131915
}
19141916

19151917
connectionRW->PQexecNR( "COMMIT" );
1918+
1919+
featuresCounted -= id.size();
19161920
}
19171921
catch ( PGException &e )
19181922
{

0 commit comments

Comments
 (0)