mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
sql parser refactor
This commit is contained in:
@@ -59,6 +59,11 @@ public class SQLStatementParser extends SQLParser {
|
||||
super(lexer);
|
||||
this.exprParser = new SQLExprParser(lexer);
|
||||
}
|
||||
|
||||
public SQLStatementParser(SQLExprParser exprParser){
|
||||
super(exprParser.getLexer());
|
||||
this.exprParser = exprParser;
|
||||
}
|
||||
|
||||
public SQLExprParser getExprParser() {
|
||||
return exprParser;
|
||||
@@ -476,7 +481,7 @@ public class SQLStatementParser extends SQLParser {
|
||||
}
|
||||
|
||||
public SQLCreateTableParser getSQLCreateTableParser() {
|
||||
return new SQLCreateTableParser(lexer);
|
||||
return new SQLCreateTableParser(this.exprParser);
|
||||
}
|
||||
|
||||
public SQLSelectStatement parseSelect() throws ParserException {
|
||||
|
||||
Reference in New Issue
Block a user