Skip to content
Permalink
Browse files

[oracle] Always fetch features with null goemetry unless feature rect…

… is set

...to match behaviour of other providers
  • Loading branch information
nyalldawson committed Apr 21, 2018
1 parent dd2ff15 commit a74414c0aee1ce1c8965f6980330176e78228a26
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/oracle/qgsoraclefeatureiterator.cpp
@@ -172,7 +172,13 @@ QgsOracleFeatureIterator::QgsOracleFeatureIterator( QgsOracleFeatureSource *sour
if ( !whereClause.isEmpty() )
whereClause += QStringLiteral( " AND " );

whereClause += '(';

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

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

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

0 comments on commit a74414c

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