Navigation Menu

Skip to content

Commit

Permalink
Fix unquoted column identifier in QgsHanaProvider::estimateExtent
Browse files Browse the repository at this point in the history
  • Loading branch information
mrylov committed Dec 7, 2020
1 parent 3648f23 commit 9efeb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/hana/qgshanaprovider.cpp
Expand Up @@ -1155,7 +1155,7 @@ QgsRectangle QgsHanaProvider::estimateExtent() const
}
else
{
QString subQuery = buildQuery( QStringLiteral( "ST_EnvelopeAggr(%1) AS ext" ).arg( mGeometryColumn ) );
QString subQuery = buildQuery( QStringLiteral( "ST_EnvelopeAggr(%1) AS ext" ).arg( QgsHanaUtils::quotedIdentifier( mGeometryColumn ) ) );
sql = QStringLiteral( "SELECT ext.ST_XMin(),ext.ST_YMin(),ext.ST_XMax(),ext.ST_YMax() FROM (%1)" ).arg( subQuery );
}

Expand Down

0 comments on commit 9efeb35

Please sign in to comment.