Skip to content
Permalink
Browse files

Preserve 0 values from postgres int columns

  • Loading branch information
m-kuhn committed Jul 13, 2015
1 parent de2b6a9 commit 156a0e9184cfb586218a2d2a4e5df281c98c6332
Showing with 1 addition and 15 deletions.
  1. +1 −15 src/providers/postgres/qgspostgresfeatureiterator.cpp
@@ -158,21 +158,7 @@ bool QgsPostgresFeatureIterator::fetchFeature( QgsFeature& feature )
return false;
}

// Now return the next feature from the queue
if ( !mFetchGeometry )
{
feature.setGeometryAndOwnership( 0, 0 );
}
else
{
Q_NOWARN_DEPRECATED_PUSH
feature.setGeometry( mFeatureQueue.front().geometryAndOwnership() );
Q_NOWARN_DEPRECATED_POP
}
feature.setFeatureId( mFeatureQueue.front().id() );
feature.setAttributes( mFeatureQueue.front().attributes() );

mFeatureQueue.dequeue();
feature = mFeatureQueue.dequeue();
mFetched++;

feature.setValid( true );

0 comments on commit 156a0e9

Please sign in to comment.
You can’t perform that action at this time.