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:
@@ -43,7 +43,7 @@ public class Lexer {
|
||||
protected static SymbolTable symbols_l2 = new SymbolTable(512);
|
||||
|
||||
protected int features = 0; //SQLParserFeature.of(SQLParserFeature.EnableSQLBinaryOpExprGroup);
|
||||
protected final String text;
|
||||
public final String text;
|
||||
protected int pos;
|
||||
protected int mark;
|
||||
|
||||
@@ -211,6 +211,11 @@ public class Lexer {
|
||||
this.reset(this.savePoint);
|
||||
}
|
||||
|
||||
public void reset(int pos) {
|
||||
this.pos = pos;
|
||||
this.ch = charAt(pos);
|
||||
}
|
||||
|
||||
public Lexer(String input, boolean skipComment){
|
||||
this.skipComment = skipComment;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user