Skip to content

Commit 06c7e7b

Browse files
author
jef
committedMar 26, 2010
another postgres feature count fix
git-svn-id: http://svn.osgeo.org/qgis/trunk@13165 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent fa4eb9f commit 06c7e7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,10 +736,10 @@ bool QgsPostgresProvider::nextFeature( QgsFeature& feature )
736736

737737
if ( mFeatureQueue.empty() )
738738
{
739-
QgsDebugMsg( "End of features" );
739+
QgsDebugMsg( QString( "finished after %1 features" ).arg( mFetched ) );
740740
connectionRO->closeCursor( cursorName );
741741
mFetching = false;
742-
if ( featuresCounted != mFetched )
742+
if ( featuresCounted < mFetched )
743743
{
744744
QgsDebugMsg( QString( "feature count adjusted from %1 to %2" ).arg( featuresCounted ).arg( mFetched ) );
745745
featuresCounted = mFetched;

0 commit comments

Comments
 (0)
Please sign in to comment.