query designer - grop filter (having clause)

This commit is contained in:
Jan Prochazka
2020-12-30 15:55:53 +01:00
parent 5a42e8c9ae
commit 351ac5e6a7
5 changed files with 90 additions and 33 deletions

View File

@@ -36,6 +36,11 @@ export function dumpSqlSelect(dmp: SqlDumper, cmd: Select) {
dmp.putCollection(', ', cmd.groupBy, (expr) => dumpSqlExpression(dmp, expr));
dmp.put('&n');
}
if (cmd.having) {
dmp.put('&n^having ');
dumpSqlCondition(dmp, cmd.having);
dmp.put('&n');
}
if (cmd.orderBy) {
dmp.put('&n^order ^by ');
dmp.putCollection(', ', cmd.orderBy, (expr) => {