improved sql parser. for issue #1780

This commit is contained in:
wenshao
2017-07-13 12:22:51 +08:00
parent 4a88007ea2
commit 66f3ffcc67
14 changed files with 189 additions and 142 deletions
@@ -721,6 +721,19 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
printAndAccept(x.getArguments(), ", ");
print(')');
}
Boolean withTimeZone = x.getWithTimeZone();
if (withTimeZone != null) {
if (withTimeZone) {
if (x.isWithLocalTimeZone()) {
print0(ucase ? " WITH LOCAL TIME ZONE" : " with local time zone");
} else {
print0(ucase ? " WITH TIME ZONE" : " with time zone");
}
} else {
print0(ucase ? " WITHOUT TIME ZONE" : " without time zone");
}
}
}
public boolean visit(SQLCharacterDataType x) {