Skip to content
Permalink
Browse files
Merge pull request #42789 from MorriganR/fixROUNDexpressionPostgreSQL
[PostgreSQL] fix ROUND expression
  • Loading branch information
elpaso committed Apr 15, 2021
2 parents f93bd65 + cfef784 commit dbb1efd5d87b7881c3b78c614d581c31b8f7b306
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/postgres/qgspostgresexpressioncompiler.cpp
@@ -145,6 +145,10 @@ QStringList QgsPostgresExpressionCompiler::sqlArgumentsFromFunctionName( const Q
{
args << QStringLiteral( "8" );
}
else if ( fnName == QLatin1String( "round" ) )
{
args[0] = QStringLiteral( "(%1)::numeric" ).arg( args[0] );
}
// x and y functions have to be adapted
return args;
}

0 comments on commit dbb1efd

Please sign in to comment.