Skip to content

Commit 3244634

Browse files
committed
oracle provider: fix build
1 parent 0bc3c29 commit 3244634

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/providers/oracle/qgsoracleprovider.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,10 @@ bool QgsOracleProvider::loadFields()
679679
{
680680
if ( !mHasSpatialIndex )
681681
{
682-
mHasSpatialIndex = 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'" )
683-
.arg( mQuery )
684-
.arg( quotedIdentifier( mGeometryColumn ) )
685-
.arg( mSrid < 1 ? "NULL" : QString::number( mSrid ) ) );
682+
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'" )
683+
.arg( mQuery )
684+
.arg( quotedIdentifier( mGeometryColumn ) )
685+
.arg( mSrid < 1 ? "NULL" : QString::number( mSrid ) ) );
686686
}
687687

688688
if ( !mHasSpatialIndex )

0 commit comments

Comments
 (0)