mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug: mysql支持解析if...elseif...elseif...end
This commit is contained in:
@@ -582,7 +582,12 @@ public class SQLStatementParser extends SQLParser {
|
||||
stmt.setParent(parent);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (lexer.token() == Token.ELSEIF
|
||||
&& parent instanceof SQLIfStatement) {
|
||||
break;
|
||||
}
|
||||
|
||||
int size = statementList.size();
|
||||
if (parseStatementListDialect(statementList)) {
|
||||
if (parent != null) {
|
||||
|
||||
@@ -132,7 +132,7 @@ public enum Token {
|
||||
SHOW("SHOW"),
|
||||
REPLACE("REPLACE"),
|
||||
PERIOD("PERIOD"),
|
||||
|
||||
ELSEIF("ELSEIF"),
|
||||
BITS,
|
||||
|
||||
// MySql procedure add by zz
|
||||
|
||||
Reference in New Issue
Block a user