Skip to content
Permalink
Browse files

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 19, 2015
1 parent 9754353 commit 32414c54e28a64fb9813440d343cc5dfeeee310c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/oracle/qgsoraclefeatureiterator.cpp
@@ -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()];

0 comments on commit 32414c5

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