mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved postgresql parser. for issue #2484
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user