Skip to content
Permalink
Browse files
[PostgreSQL] fix ROUND expression
  • Loading branch information
MorriganR committed Apr 14, 2021
1 parent 436e642 commit cfef7841ea05ad9a1452799a832479556bf6f04b
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 cfef784

Please sign in to comment.