mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
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:
parent
a2d3b38029
commit
9addfdbbd2
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user