Quoted semicolon after escaped quotes wrongly interpreted as delimiter
Description
The following changeset in formatted SQL used to work with 3.5.1, but it produces an SQL syntax error with 3.5.5:
The error does not occur if only one of both commands is present.
I assume that the parser is confused by the mixture of escaped quotes and quoted semicolons.
The error message (an excerpt below) indicates that the semicolon after the first occurrence of 'first' in the last line is interpreted as a delimiter, even though it is quoted.
Environment
Java 8, Tomcat 8.5, Ubuntu Linux 16.04, MySQL 5.7.15
The following changeset in formatted SQL used to work with 3.5.1, but it produces an SQL syntax error with 3.5.5:
The error does not occur if only one of both commands is present.
I assume that the parser is confused by the mixture of escaped quotes and quoted semicolons.
The error message (an excerpt below) indicates that the semicolon after the first occurrence of 'first' in the last line is interpreted as a delimiter, even though it is quoted.