Skip to content

Commit

Permalink
[oracle] Always fetch features with null goemetry unless feature rect…
Browse files Browse the repository at this point in the history
… is set

...to match behaviour of other providers

(cherry-picked from c5c22d3)
  • Loading branch information
nyalldawson committed May 24, 2018
1 parent bacaee4 commit 29e80ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/oracle/qgsoraclefeatureiterator.cpp
Expand Up @@ -160,7 +160,13 @@ QgsOracleFeatureIterator::QgsOracleFeatureIterator( QgsOracleFeatureSource* sour
if ( !whereClause.isEmpty() )
whereClause += " AND ";

whereClause += '(';

whereClause += QgsOracleConn::databaseTypeFilter( "FEATUREREQUEST", mSource->mGeometryColumn, mSource->mRequestedGeomType );

if ( mRequest.filterRect().isNull() )
whereClause += QString( " OR %1 IS NULL" ).arg( mSource->mGeometryColumn );
whereClause += ')';
}

if ( !mSource->mSqlWhereClause.isEmpty() )
Expand Down

0 comments on commit 29e80ba

Please sign in to comment.