Commit 93fc0d1
committed
nom-sql: Fix regression in parsing UNIQUE KEY() USING syntax
This commit fixes a regression where surpisingly, the combination of
opt(preceded(whitespace0, deferrable(dialect))) will consume the
whitespaces even if the deferrable will not match, causing the next
parser, in this case the using clause, to fail as it requires at least
one whitespace.
Fixes: REA-5221
Fixes #1421
Release-Note-Core: Fix regression in parsing UNIQUE KEY() USING
syntax for MySQL.
Change-Id: Iea06c57c222c901df67bbc5c608af5db8add3fac
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/8641
Tested-by: Buildkite CI
Reviewed-by: Johnathan Davis <jcd@readyset.io>1 parent 7c3e0b1 commit 93fc0d1
1 file changed
+40
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
| 696 | + | |
696 | 697 | | |
697 | 698 | | |
698 | 699 | | |
699 | 700 | | |
700 | 701 | | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
701 | 707 | | |
702 | 708 | | |
703 | 709 | | |
| |||
782 | 788 | | |
783 | 789 | | |
784 | 790 | | |
785 | | - | |
| 791 | + | |
786 | 792 | | |
787 | 793 | | |
788 | 794 | | |
| |||
1717 | 1723 | | |
1718 | 1724 | | |
1719 | 1725 | | |
1720 | | - | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1721 | 1758 | | |
1722 | 1759 | | |
1723 | 1760 | | |
| |||
0 commit comments