designer - aggregate, group by, order by

This commit is contained in:
Jan Prochazka
2020-12-29 15:07:32 +01:00
parent 9d10068799
commit ed11b9e5a1
4 changed files with 73 additions and 20 deletions

View File

@@ -29,7 +29,8 @@ export function dumpSqlExpression(dmp: SqlDumper, expr: Expression) {
break;
case 'call':
dmp.put('%s(%s', expr.func, expr.argsPrefix);
dmp.put('%s(', expr.func);
if (expr.argsPrefix) dmp.put('%s ', expr.argsPrefix);
dmp.putCollection(',', expr.args, (x) => dumpSqlExpression(dmp, x));
dmp.put(')');
break;