Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
oracle provider: fix ExactIntersect check if spatial extension is ava…
…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
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.