Skip to content

Commit

Permalink
another postgres feature count fix
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13165 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 26, 2010
1 parent fa4eb9f commit 06c7e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 06c7e7b

Please sign in to comment.