Skip to content

Commit

Permalink
Don't use sdo_tune.extent_of if user doesn't ask explicitly for
Browse files Browse the repository at this point in the history
estimated metadata
  • Loading branch information
troopa81 authored and nyalldawson committed Jan 8, 2020
1 parent d6b4b4a commit c495b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -2272,7 +2272,7 @@ QgsRectangle QgsOracleProvider::extent() const
}
}

if ( mHasSpatialIndex && ( mUseEstimatedMetadata || mSqlWhereClause.isEmpty() ) )
if ( mHasSpatialIndex && mUseEstimatedMetadata )
{
ok = exec( qry,
QStringLiteral( "SELECT SDO_TUNE.EXTENT_OF(?,?) FROM dual" ),
Expand Down

0 comments on commit c495b4c

Please sign in to comment.