bug fixed for sql parser OutputVisitor.

This commit is contained in:
wenshao
2017-01-21 13:17:45 +08:00
parent 55165e2f22
commit a9149f4730
5 changed files with 103 additions and 6 deletions
@@ -826,7 +826,8 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
@Override
public boolean visit(MySqlIntervalExpr x) {
print0(ucase ? "INTERVAL " : "interval ");
x.getValue().accept(this);
SQLExpr value = x.getValue();
value.accept(this);
print(' ');
print0(ucase ? x.getUnit().name() : x.getUnit().name_lcase);
return false;