bug fixed for oracle parser. for issue #1808

This commit is contained in:
wenshao
2017-07-12 00:51:52 +08:00
parent a31afb10c4
commit cdcc4ed07c
4 changed files with 85 additions and 12 deletions
@@ -3933,9 +3933,11 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
print(')');
}
if (x.getInterval() != null) {
print0(ucase ? " INTERVAL " : " interval ");
x.getInterval().accept(this);
SQLExpr interval = x.getInterval();
if (interval != null) {
print0(ucase ? " INTERVAL (" : " interval (");
interval.accept(this);
print(')');
}
printPartitionsCountAndSubPartitions(x);