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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user