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
@@ -1516,11 +1516,13 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
print(')');
SQLOrderBy withGroup = x.getWithinGroup();
if (withGroup != null) {
print0(ucase ? " WITHIN GROUP (" : " within group (");
visit(withGroup);
print(')');
if (!JdbcConstants.POSTGRESQL.equals(dbType)) {
SQLOrderBy withGroup = x.getWithinGroup();
if (withGroup != null) {
print0(ucase ? " WITHIN GROUP (" : " within group (");
visit(withGroup);
print(')');
}
}
SQLKeep keep = x.getKeep();