Skip to content

Commit

Permalink
oracle provider: fix ExactIntersect check if spatial extension is ava…
Browse files Browse the repository at this point in the history
…ilable and there is no spatial index (fixes #13005)

(cherry-picked from dfc2cf0 & 318137a)
  • Loading branch information
jef-n committed Jun 29, 2015
1 parent 9754353 commit 32414c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoraclefeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ bool QgsOracleFeatureIterator::fetchFeature( QgsFeature& feature )
int col = 0;

if ((( mRequest.flags() & QgsFeatureRequest::NoGeometry ) == 0 && !mSource->mGeometryColumn.isNull() ) ||
(( mRequest.flags() & QgsFeatureRequest::ExactIntersect ) != 0 && !mConnection->hasSpatial() ) )
(( mRequest.flags() & QgsFeatureRequest::ExactIntersect ) != 0 && ( !mConnection->hasSpatial() || !mSource->mHasSpatialIndex ) ) )
{
QByteArray *ba = static_cast<QByteArray*>( mQry.value( col++ ).data() );
unsigned char *copy = new unsigned char[ba->size()];
Expand Down

0 comments on commit 32414c5

Please sign in to comment.