fix feature count in postgres provider

git-svn-id: http://svn.osgeo.org/qgis/trunk@10426 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2009-03-27 17:40:08 +00:00
parent a2d3b38029
commit 9addfdbbd2

View File

@ -622,7 +622,7 @@ bool QgsPostgresProvider::nextFeature( QgsFeature& feature )
feature.setAttributeMap( mFeatureQueue.front().attributeMap() );
mFeatureQueue.pop();
feature.setValid( true );
return true;
}
@ -1873,6 +1873,8 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList & flist )
connectionRW->PQexecNR( "DEALLOCATE addfeatures" );
connectionRW->PQexecNR( "COMMIT" );
featuresCounted += flist.size();
}
catch ( PGException &e )
{
@ -1913,6 +1915,8 @@ bool QgsPostgresProvider::deleteFeatures( const QgsFeatureIds & id )
}
connectionRW->PQexecNR( "COMMIT" );
featuresCounted -= id.size();
}
catch ( PGException &e )
{