Commit 507a2e5
Address Copilot round 3: reuse extract_iter_variable_name for list comprehensions
- Refactor build_list_comprehension_node() to reuse the shared
extract_iter_variable_name() helper, so `var IN list` validation
is consistent between list comprehensions and predicate functions
(all/any/none/single). Qualified ColumnRefs like `x.y IN list`
are now rejected in list comprehensions the same way they are
in predicate functions.
- Update list_comprehension expected output for the normalized
lowercase "syntax error at or near IN" message.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent cc19476 commit 507a2e5
2 files changed
Lines changed: 13 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3339 | 3339 | | |
3340 | 3340 | | |
3341 | 3341 | | |
3342 | | - | |
3343 | | - | |
| 3342 | + | |
| 3343 | + | |
3344 | 3344 | | |
3345 | 3345 | | |
3346 | | - | |
3347 | | - | |
3348 | | - | |
3349 | | - | |
3350 | | - | |
3351 | | - | |
3352 | | - | |
3353 | | - | |
3354 | | - | |
3355 | | - | |
3356 | | - | |
3357 | | - | |
3358 | | - | |
3359 | | - | |
3360 | | - | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
3361 | 3354 | | |
3362 | 3355 | | |
3363 | 3356 | | |
3364 | | - | |
| 3357 | + | |
3365 | 3358 | | |
3366 | 3359 | | |
3367 | 3360 | | |
| |||
0 commit comments