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)
  • Loading branch information
jef-n committed Jun 19, 2015
1 parent 5063c66 commit dfc2cf0
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; int col = 0;


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

0 comments on commit dfc2cf0

Please sign in to comment.