Skip to content
Permalink
Browse files

oracle provider: fix call of sdo_filter to verify a spatial index is …

…present

(cherry picked from commit 684346a)
  • Loading branch information
jef-n committed Nov 26, 2015
1 parent 58ee9bb commit 6c3290b756d99e890a55cd119ba5b83c5f53ce86
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/oracle/qgsoracleprovider.cpp
@@ -694,7 +694,7 @@ bool QgsOracleProvider::loadFields()

if ( !mHasSpatialIndex )
{
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'" )
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'" )
.arg( mQuery )
.arg( quotedIdentifier( mGeometryColumn ) )
.arg( mSrid < 1 ? "NULL" : QString::number( mSrid ) ) );

0 comments on commit 6c3290b

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