forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit59c325b
committed
Repair for bug #691 --- CREATE TABLE AS column aliases fail to be
applied when the select is a UNION (or other set-operation).An alternative route to a fix would be to leave analyze.c alone andchange plan_set_operations in prepunion.c to take column names fromthe topmost targetlist. But I am not sure that would work in allcases. This patch seems the minimum-risk fix.1 parent2ed878d commit59c325b
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
2212 | 2212 |
| |
2213 | 2213 |
| |
2214 | 2214 |
| |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
2215 | 2220 |
| |
| 2221 | + | |
2216 | 2222 |
| |
| 2223 | + | |
| 2224 | + | |
2217 | 2225 |
| |
2218 | 2226 |
| |
2219 | 2227 |
| |
|
0 commit comments
Comments
(0)