mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug: 修复多出解析bug
This commit is contained in:
@@ -595,6 +595,9 @@ public class SQLStatementParser extends SQLParser {
|
||||
SQLStatement dialectStmt = statementList.get(j);
|
||||
dialectStmt.setParent(parent);
|
||||
}
|
||||
if (parent instanceof SQLCreateTriggerStatement) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
continue;
|
||||
@@ -3848,7 +3851,7 @@ public class SQLStatementParser extends SQLParser {
|
||||
stmt.setWhen(condition);
|
||||
}
|
||||
|
||||
List<SQLStatement> body = this.parseStatementList();
|
||||
List<SQLStatement> body = this.parseStatementList(stmt);
|
||||
if (body == null || body.isEmpty()) {
|
||||
throw new ParserException("syntax error");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user