Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update src/providers/postgres/qgspostgresexpressioncompiler.cpp
Co-authored-by: Alessandro Pasotti <elpaso@itopen.it>
  • Loading branch information
mhugent and elpaso committed Aug 1, 2021
1 parent 91b02a8 commit 6ebeb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresexpressioncompiler.cpp
Expand Up @@ -47,7 +47,7 @@ QString QgsPostgresExpressionCompiler::quotedValue( const QVariant &value, bool
case QVariant::UserType:
if ( value.canConvert<QgsGeometry>() )
{
QgsGeometry geom = value.value<QgsGeometry>();
const QgsGeometry geom = value.value<QgsGeometry>();
return QString( "ST_GeomFromText('%1',%2)" ).arg( geom.asWkt() ).arg( mRequestedSrid.isEmpty() ? mDetectedSrid : mRequestedSrid );
}
break;
Expand Down

0 comments on commit 6ebeb43

Please sign in to comment.