mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser performance.
This commit is contained in:
@@ -47,7 +47,7 @@ import com.alibaba.druid.util.StringUtils;
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class Lexer {
|
||||
|
||||
protected int features;
|
||||
protected final String text;
|
||||
protected int pos;
|
||||
protected int mark;
|
||||
@@ -1644,4 +1644,12 @@ public class Lexer {
|
||||
public int getPosColumn() {
|
||||
return posColumn;
|
||||
}
|
||||
|
||||
public void config(SQLParserFeature feature, boolean state) {
|
||||
features = SQLParserFeature.config(features, feature, state);
|
||||
}
|
||||
|
||||
public final boolean isEnabled(SQLParserFeature feature) {
|
||||
return SQLParserFeature.isEnabled(this.features, feature);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user