Skip to content
Permalink
Browse files

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

…present
  • Loading branch information
jef-n committed Oct 7, 2015
1 parent bf9fe7c commit 684346a955dd4c79efcb6bfe519f6006c73c2aaa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/oracle/qgsoracleprovider.cpp
@@ -703,7 +703,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 684346a

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