mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
sql format support lower case
This commit is contained in:
@@ -753,9 +753,9 @@ public class OdpsOutputVisitor extends SQLASTOutputVisitor implements OdpsASTVis
|
||||
protected void printFunctionName(String name) {
|
||||
String upperName = name.toUpperCase();
|
||||
if (builtInFunctions.contains(upperName)) {
|
||||
print(ucase ? upperName : name);
|
||||
print0(ucase ? upperName : name);
|
||||
} else {
|
||||
print(name);
|
||||
print0(name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -830,7 +830,7 @@ public class OdpsOutputVisitor extends SQLASTOutputVisitor implements OdpsASTVis
|
||||
if (x.getTo() != null) {
|
||||
print0(ucase ? " TO " : " to ");
|
||||
if (x.getSubjectType() != null) {
|
||||
print(x.getSubjectType().name());
|
||||
print0(x.getSubjectType().name());
|
||||
print(' ');
|
||||
}
|
||||
x.getTo().accept(this);
|
||||
|
||||
Reference in New Issue
Block a user