mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved odps sql formmatter
This commit is contained in:
@@ -562,12 +562,16 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
x.getOwner().accept(this);
|
||||
print(".");
|
||||
}
|
||||
print(x.getMethodName());
|
||||
printFunctionName(x.getMethodName());
|
||||
print("(");
|
||||
printAndAccept(x.getParameters(), ", ");
|
||||
print(")");
|
||||
return false;
|
||||
}
|
||||
|
||||
protected void printFunctionName(String name) {
|
||||
print(name);
|
||||
}
|
||||
|
||||
public boolean visit(SQLAggregateExpr x) {
|
||||
print(x.getMethodName());
|
||||
|
||||
Reference in New Issue
Block a user