Skip to content

Commit 6c3290b

Browse files
committed
oracle provider: fix call of sdo_filter to verify a spatial index is present
(cherry picked from commit 684346a)
1 parent 58ee9bb commit 6c3290b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/oracle/qgsoracleprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ bool QgsOracleProvider::loadFields()
694694

695695
if ( !mHasSpatialIndex )
696696
{
697-
mHasSpatialIndex = qry.exec( QString( "SELECT %2 FROM %1 WHERE sdo_filter(%2,mdsys.sdo_geometry(2003,%3,NULL,mdsys.sdo_elem_info_array(1,1003,3),mdsys.sdo_ordinate_array(1,1,-1,-1)))='TRUE'" )
697+
mHasSpatialIndex = qry.exec( QString( "SELECT %2 FROM %1 WHERE sdo_filter(%2,mdsys.sdo_geometry(2003,%3,NULL,mdsys.sdo_elem_info_array(1,1003,3),mdsys.sdo_ordinate_array(-1,-1,1,1)))='TRUE'" )
698698
.arg( mQuery )
699699
.arg( quotedIdentifier( mGeometryColumn ) )
700700
.arg( mSrid < 1 ? "NULL" : QString::number( mSrid ) ) );

0 commit comments

Comments
 (0)