forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8bd5a6a
committed
Prevent display of dropped columns in row constraint violation messages.
ExecBuildSlotValueDescription() printed "null" for each dropped column ina row being complained of by ExecConstraints(). This has some sanity interms of the underlying implementation, but is of course pretty surprisingto users. To fix, we must pass the target relation's descriptor toExecBuildSlotValueDescription(), because the slot descriptor it had beenusing doesn't get labeled with attisdropped markers.Per bug #8408 from Maxim Boguk. Back-patch to 9.2 where the feature ofprinting row values in NOT NULL and CHECK constraint violation messageswas introduced.Michael Paquier and Tom Lane1 parentaa8a2c3 commit8bd5a6a
File tree
3 files changed
+56
-12
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+56
-12
lines changedLines changed: 31 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
| 83 | + | |
83 | 84 |
| |
84 | 85 |
| |
85 | 86 |
| |
| |||
1506 | 1507 |
| |
1507 | 1508 |
| |
1508 | 1509 |
| |
1509 |
| - | |
| 1510 | + | |
| 1511 | + | |
1510 | 1512 |
| |
1511 | 1513 |
| |
1512 | 1514 |
| |
1513 | 1515 |
| |
1514 | 1516 |
| |
1515 |
| - | |
| 1517 | + | |
1516 | 1518 |
| |
1517 | 1519 |
| |
1518 | 1520 |
| |
1519 | 1521 |
| |
1520 |
| - | |
| 1522 | + | |
1521 | 1523 |
| |
1522 | 1524 |
| |
1523 | 1525 |
| |
1524 | 1526 |
| |
1525 |
| - | |
| 1527 | + | |
1526 | 1528 |
| |
1527 |
| - | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
1528 | 1532 |
| |
1529 | 1533 |
| |
1530 | 1534 |
| |
| |||
1538 | 1542 |
| |
1539 | 1543 |
| |
1540 | 1544 |
| |
1541 |
| - | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
1542 | 1548 |
| |
1543 | 1549 |
| |
1544 | 1550 |
| |
1545 | 1551 |
| |
1546 | 1552 |
| |
1547 | 1553 |
| |
1548 | 1554 |
| |
1549 |
| - | |
1550 |
| - | |
1551 |
| - | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1552 | 1563 |
| |
1553 | 1564 |
| |
1554 |
| - | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
1555 | 1568 |
| |
1556 | 1569 |
| |
1557 |
| - | |
| 1570 | + | |
1558 | 1571 |
| |
1559 | 1572 |
| |
1560 | 1573 |
| |
| |||
1569 | 1582 |
| |
1570 | 1583 |
| |
1571 | 1584 |
| |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1572 | 1589 |
| |
1573 | 1590 |
| |
1574 | 1591 |
| |
| |||
1581 | 1598 |
| |
1582 | 1599 |
| |
1583 | 1600 |
| |
1584 |
| - | |
| 1601 | + | |
1585 | 1602 |
| |
| 1603 | + | |
| 1604 | + | |
1586 | 1605 |
| |
1587 | 1606 |
| |
1588 | 1607 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1223 | 1223 |
| |
1224 | 1224 |
| |
1225 | 1225 |
| |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
1226 | 1242 |
| |
1227 | 1243 |
| |
1228 | 1244 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
874 | 874 |
| |
875 | 875 |
| |
876 | 876 |
| |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
877 | 886 |
| |
878 | 887 |
| |
879 | 888 |
| |
|
0 commit comments
Comments
(0)