Commit 3290843
fix(ast): fix VALUES clause formatting to output multiple rows
The VALUES clause was incorrectly formatting multiple rows as a single
row with multiple columns. For example:
VALUES ('A'), ('B'), ('C')
was being formatted as:
VALUES ('A', 'B', 'C')
This caused the star expander to think the VALUES table had 3 columns
instead of 1, resulting in incorrect SELECT * expansion.
The fix properly iterates over each row in ValuesLists and wraps each
in parentheses.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 7d5caa7 commit 3290843
File tree
2 files changed
+11
-4
lines changed- internal
- endtoend/testdata/accurate_cte_values/postgresql/stdlib/go
- sql/ast
2 files changed
+11
-4
lines changedLines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
| |||
0 commit comments