improved sql parser.

This commit is contained in:
wenshao
2017-10-11 20:53:12 +08:00
parent c6cbb328ea
commit 7f630d879f
37 changed files with 701 additions and 10 deletions
@@ -5477,4 +5477,10 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
this.indentCount--;
return false;
}
@Override
public boolean visit(SQLShowErrorsStatement x) {
print0(ucase ? "SHOW ERRORS" : "show errors");
return true;
}
}
@@ -766,4 +766,7 @@ public interface SQLASTVisitor {
boolean visit(SQLLateralViewTableSource x);
void endVisit(SQLLateralViewTableSource x);
boolean visit(SQLShowErrorsStatement x);
void endVisit(SQLShowErrorsStatement x);
}
@@ -1759,6 +1759,16 @@ public class SQLASTVisitorAdapter implements SQLASTVisitor {
}
@Override
public boolean visit(SQLShowErrorsStatement x) {
return true;
}
@Override
public void endVisit(SQLShowErrorsStatement x) {
}
public final boolean isEnabled(VisitorFeature feature) {
return VisitorFeature.isEnabled(this.features, feature);
}