forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit294a219
committed
Fix alter_table.sql test case to test what it claims to.
The stanza "SET STORAGE may need to add a TOAST table" does nottest what it's supposed to, and hasn't done so since we addedthe ability to store constant column default values as metadata.We need to use a non-constant default to get the expected tablerewrite to actually happen.Fix that, and add the missing checks that would have exposed theproblem to begin with.Noted while reviewing a patch that made changes in this test case.Back-patch to v11 where the problem came in.1 parent0942acb commit294a219
File tree
2 files changed
+29
-12
lines changed- src/test/regress
- expected
- sql
2 files changed
+29
-12
lines changedLines changed: 22 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2247 | 2247 |
| |
2248 | 2248 |
| |
2249 | 2249 |
| |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
2250 | 2257 |
| |
2251 |
| - | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
2252 | 2267 |
| |
2253 | 2268 |
| |
2254 |
| - | |
2255 |
| - | |
| 2269 | + | |
2256 | 2270 |
| |
2257 | 2271 |
| |
2258 | 2272 |
| |
| |||
2262 | 2276 |
| |
2263 | 2277 |
| |
2264 | 2278 |
| |
2265 |
| - | |
2266 |
| - | |
2267 |
| - | |
2268 |
| - | |
2269 |
| - | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
2270 | 2284 |
| |
2271 | 2285 |
| |
2272 | 2286 |
| |
|
Lines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1532 | 1532 |
| |
1533 | 1533 |
| |
1534 | 1534 |
| |
| 1535 | + | |
| 1536 | + | |
1535 | 1537 |
| |
1536 |
| - | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
1537 | 1542 |
| |
1538 |
| - | |
1539 | 1543 |
| |
1540 |
| - | |
1541 |
| - | |
| 1544 | + | |
1542 | 1545 |
| |
1543 | 1546 |
| |
1544 | 1547 |
| |
|
0 commit comments
Comments
(0)