Skip to content
Permalink
Browse files
another postgres feature count fix
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13165 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 26, 2010
1 parent a9e22a2 commit 6d4dfaf785c6850aa9dbd34156106ab14532e063
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -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;

0 comments on commit 6d4dfaf

Please sign in to comment.