mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support mysql create trigger/begin...end & fix issue #782
This commit is contained in:
@@ -1409,8 +1409,11 @@ public class SQLStatementParser extends SQLParser {
|
||||
stmt.setForEachRow(true);
|
||||
}
|
||||
|
||||
SQLStatement body = this.parseBlock();
|
||||
stmt.setBody(body);
|
||||
List<SQLStatement> body = this.parseStatementList();
|
||||
if(body == null || body.isEmpty()) {
|
||||
throw new ParserException("syntax error");
|
||||
}
|
||||
stmt.setBody(body.get(0));
|
||||
return stmt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user