Skip to content

Commit 6d4dfaf

Browse files
author
jef
committed
another postgres feature count fix
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13165 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a9e22a2 commit 6d4dfaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+2-2
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)