mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user