Commit 9910952
authored
Fix an interaction between aliases and optional globals with a default (#9109)
Optional globals with a default get turned into *two* parameters, one
for the value and one for whether they were set. This is to
distinguish between the cases of setting to `{}` and not setting
anything.
The "unused parameter" handling wasn't accounting for this so we would
pass more arguments than the query expected in cases where a global
got seen during compilation but didn't end up in the final query.1 parent fc4ea5d commit 9910952
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
914 | 919 | | |
915 | 920 | | |
916 | 921 | | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
0 commit comments