mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -582,14 +582,18 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
}
|
||||
|
||||
public boolean visit(SQLDataType x) {
|
||||
printDataType(x);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected void printDataType(SQLDataType x) {
|
||||
print0(x.getName());
|
||||
if (x.getArguments().size() > 0) {
|
||||
print('(');
|
||||
printAndAccept(x.getArguments(), ", ");
|
||||
print(')');
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean visit(SQLCharacterDataType x) {
|
||||
@@ -4155,6 +4159,12 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
print(x.getPctfree());
|
||||
}
|
||||
|
||||
if (x.getPctused() != null) {
|
||||
println();
|
||||
print0(ucase ? "PCTUSED " : "pctused ");
|
||||
print(x.getPctused());
|
||||
}
|
||||
|
||||
if (x.getInitrans() != null) {
|
||||
println();
|
||||
print0(ucase ? "INITRANS " : "initrans ");
|
||||
|
||||
Reference in New Issue
Block a user