Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Preserve 0 values from postgres int columns
  • Loading branch information
m-kuhn committed Jul 13, 2015
1 parent de2b6a9 commit 156a0e9
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/providers/postgres/qgspostgresfeatureiterator.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 156a0e9

Please sign in to comment.