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:
@@ -31,6 +31,7 @@ import com.alibaba.druid.sql.ast.statement.SQLUnionOperator;
|
||||
import com.alibaba.druid.sql.ast.statement.SQLUnionQuery;
|
||||
|
||||
public class SQLSelectParser extends SQLParser {
|
||||
protected SQLExprParser exprParser;
|
||||
|
||||
public SQLSelectParser(String sql){
|
||||
super(sql);
|
||||
@@ -39,6 +40,11 @@ public class SQLSelectParser extends SQLParser {
|
||||
public SQLSelectParser(Lexer lexer){
|
||||
super(lexer);
|
||||
}
|
||||
|
||||
public SQLSelectParser(SQLExprParser exprParser){
|
||||
super(exprParser.getLexer());
|
||||
this.exprParser = exprParser;
|
||||
}
|
||||
|
||||
public SQLSelect select() throws ParserException {
|
||||
SQLSelect select = new SQLSelect();
|
||||
|
||||
Reference in New Issue
Block a user