improved sql parser performance.

This commit is contained in:
wenshao
2017-08-21 16:57:58 +08:00
parent 5804eea0c9
commit c370d70188
12 changed files with 300 additions and 72 deletions
@@ -21,6 +21,8 @@ public class SQLParser {
protected String dbType;
public SQLParser(String sql, String dbType){
this(new Lexer(sql, null, dbType), dbType);
this.lexer.nextToken();
@@ -316,4 +318,11 @@ public class SQLParser {
}
}
public void config(SQLParserFeature feature, boolean state) {
this.lexer.config(feature, state);
}
public final boolean isEnabled(SQLParserFeature feature) {
return lexer.isEnabled(feature);
}
}