improved sql parser.

This commit is contained in:
wenshao
2017-05-21 19:39:29 +08:00
parent 8b51ecf021
commit b5b5d66015
39 changed files with 3622 additions and 94 deletions
@@ -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 ");