- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit4297f17
committed
Prevent failure when RowExpr or XmlExpr is parse-analyzed twice.
transformExpr() is required to cope with already-transformed expressiontrees, for various ugly-but-not-quite-worth-cleaning-up reasons. However,some of its newer subroutines hadn't gotten the memo. This accounts forbug #7763 from Norbert Buchmuller: transformRowExpr() was overwriting thepreviously determined type of a RowExpr during CREATE TABLE LIKE INCLUDINGINDEXES. Additional investigation showed that transformXmlExpr had thesame kind of problem, but all the other cases seem to be safe.Andres Freund and Tom Lane1 parent3fd0393 commit4297f17
2 files changed
+20
-2
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9817 | 9817 |
| |
9818 | 9818 |
| |
9819 | 9819 |
| |
| 9820 | + | |
| 9821 | + | |
| 9822 | + | |
9820 | 9823 |
| |
9821 | 9824 |
| |
9822 | 9825 |
| |
|
Lines changed: 17 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
| 95 | + | |
| 96 | + | |
95 | 97 |
| |
96 | 98 |
| |
97 | 99 |
| |
| |||
1341 | 1343 |
| |
1342 | 1344 |
| |
1343 | 1345 |
| |
1344 |
| - | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1345 | 1353 |
| |
1346 | 1354 |
| |
1347 | 1355 |
| |
| |||
1431 | 1439 |
| |
1432 | 1440 |
| |
1433 | 1441 |
| |
1434 |
| - | |
| 1442 | + | |
1435 | 1443 |
| |
1436 | 1444 |
| |
1437 | 1445 |
| |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
1438 | 1451 |
| |
1439 | 1452 |
| |
1440 | 1453 |
| |
1441 | 1454 |
| |
1442 | 1455 |
| |
| 1456 | + | |
| 1457 | + | |
1443 | 1458 |
| |
1444 | 1459 |
| |
1445 | 1460 |
| |
|
0 commit comments
Comments
(0)