Repository navigation
Commit 5ba6c85
fix(core): type a set operation column of an argument-free type as its family
A column of UNION, INTERSECT or EXCEPT whose combined type has no
arguments, as a string literal's varchar or decimal arithmetic's
decimal, was looked up as a declared type, which takes the dialect's
defaults: varchar(1) and decimal(18,0). It is now its family.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 95835ee commit 5ba6c85
3 files changed
Lines changed: 23 additions & 0 deletions
File tree
- internal
- core/analyzer
- endtoend/testdata/analyze_set_operations/mssql
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
169 | 182 | | |
170 | 183 | | |
0 commit comments