Commit 43f3b0e
committed
nom-sql: Allow whitespace inside ROW values and some function calls
Previously, nom expected function arguments to appear immediately
after the opening parenthesis. As a result, queries with whitespace
before the first argument or after the last one would fail to parse.
This behavior also affected ROW value expressions.
This commit fixes both cases.
Fixes: REA-5237
Closes: #1488
Release-Note-Core: Make parser more flexible with whitespaces
in function arguments and `IN` list values.
Change-Id: Id4d8a8961fa602cfd1583a54c517e0994f1911aa
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/9195
Tested-by: Buildkite CI
Reviewed-by: Marcelo Altmann <marcelo@readyset.io>1 parent 49564ef commit 43f3b0e
File tree
4 files changed
+15
-2
lines changed- logictests
- nom-sql/src
4 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
281 | 286 | | |
282 | 287 | | |
283 | 288 | | |
| 289 | + | |
284 | 290 | | |
285 | 291 | | |
286 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
| 795 | + | |
795 | 796 | | |
796 | 797 | | |
797 | 798 | | |
| |||
801 | 802 | | |
802 | 803 | | |
803 | 804 | | |
| 805 | + | |
804 | 806 | | |
805 | 807 | | |
806 | 808 | | |
| |||
0 commit comments