another postgres feature count fix

git-svn-id: http://svn.osgeo.org/qgis/trunk@13165 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2010-03-26 15:31:37 +00:00
parent fa4eb9f73c
commit 06c7e7b6ff

View File

@ -736,10 +736,10 @@ bool QgsPostgresProvider::nextFeature( QgsFeature& feature )
if ( mFeatureQueue.empty() )
{
QgsDebugMsg( "End of features" );
QgsDebugMsg( QString( "finished after %1 features" ).arg( mFetched ) );
connectionRO->closeCursor( cursorName );
mFetching = false;
if ( featuresCounted != mFetched )
if ( featuresCounted < mFetched )
{
QgsDebugMsg( QString( "feature count adjusted from %1 to %2" ).arg( featuresCounted ).arg( mFetched ) );
featuresCounted = mFetched;