Repository navigation
Commit 869f386
committed
Read delimiters that start with a quote in the query corpus extractor
multi_statement.test sets the delimiter to 'abcd', with the quotes. The extractor handled the opening quote before it looked for the delimiter, so it never found it, and the rest of the file was lost. As in mysqltest, it now looks for the delimiter first.
The corpus grows from 78,147 to 78,153 rows. The pinned failures go from 142 to 144, because 2 of the new rows have several statements in one string, which MySQL 8.4.10 also rejects without its multi-statement client flag.1 parent a18d7d5 commit 869f386
4 files changed
Lines changed: 32 additions & 6 deletions
File tree
- packages/mysql-parser
- data/mysql-server-query-corpus
- tests
- data
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61770 | 61770 | | |
61771 | 61771 | | |
61772 | 61772 | | |
| 61773 | + | |
| 61774 | + | |
| 61775 | + | |
| 61776 | + | |
| 61777 | + | |
| 61778 | + | |
| 61779 | + | |
| 61780 | + | |
| 61781 | + | |
| 61782 | + | |
| 61783 | + | |
| 61784 | + | |
| 61785 | + | |
| 61786 | + | |
61773 | 61787 | | |
61774 | 61788 | | |
61775 | 61789 | | |
| |||
117736 | 117750 | | |
117737 | 117751 | | |
117738 | 117752 | | |
117739 | | - | |
117740 | 117753 | | |
117741 | 117754 | | |
117742 | 117755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
542 | 548 | | |
543 | 549 | | |
544 | 550 | | |
| |||
615 | 621 | | |
616 | 622 | | |
617 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
618 | 627 | | |
619 | 628 | | |
620 | 629 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
356 | 359 | | |
357 | | - | |
| 360 | + | |
358 | 361 | | |
359 | 362 | | |
360 | 363 | | |
| |||
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
371 | | - | |
| 374 | + | |
372 | 375 | | |
373 | 376 | | |
374 | 377 | | |
| |||
0 commit comments