improved postgresql parser. for issue #2484

This commit is contained in:
wenshao
2018-04-12 20:55:22 +08:00
parent b84e7b946a
commit 3ea9c0c8ba
4 changed files with 88 additions and 7 deletions
@@ -3029,4 +3029,12 @@ public class PGOutputVisitor extends SQLASTOutputVisitor implements PGASTVisitor
printAndAccept(x.getColumns(), ", ");
return false;
}
protected void visitAggreateRest(SQLAggregateExpr x) {
SQLOrderBy orderBy = x.getWithinGroup();
if (orderBy != null) {
print(' ');
orderBy.accept(this);
}
}
}