forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdf5d5f1
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 parent5d0731d commitdf5d5f1
File tree
3 files changed
+54
-12
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+54
-12
lines changedLines changed: 31 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| 85 | + | |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
| |||
1584 | 1585 |
| |
1585 | 1586 |
| |
1586 | 1587 |
| |
1587 |
| - | |
| 1588 | + | |
| 1589 | + | |
1588 | 1590 |
| |
1589 | 1591 |
| |
1590 | 1592 |
| |
1591 | 1593 |
| |
1592 | 1594 |
| |
1593 |
| - | |
| 1595 | + | |
1594 | 1596 |
| |
1595 | 1597 |
| |
1596 | 1598 |
| |
1597 | 1599 |
| |
1598 |
| - | |
| 1600 | + | |
1599 | 1601 |
| |
1600 | 1602 |
| |
1601 | 1603 |
| |
1602 | 1604 |
| |
1603 |
| - | |
| 1605 | + | |
1604 | 1606 |
| |
1605 |
| - | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1606 | 1610 |
| |
1607 | 1611 |
| |
1608 | 1612 |
| |
| |||
1617 | 1621 |
| |
1618 | 1622 |
| |
1619 | 1623 |
| |
1620 |
| - | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1621 | 1627 |
| |
1622 | 1628 |
| |
1623 | 1629 |
| |
| |||
1626 | 1632 |
| |
1627 | 1633 |
| |
1628 | 1634 |
| |
1629 |
| - | |
1630 |
| - | |
1631 |
| - | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
1632 | 1643 |
| |
1633 | 1644 |
| |
1634 |
| - | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
1635 | 1648 |
| |
1636 | 1649 |
| |
1637 |
| - | |
| 1650 | + | |
1638 | 1651 |
| |
1639 | 1652 |
| |
1640 | 1653 |
| |
| |||
1649 | 1662 |
| |
1650 | 1663 |
| |
1651 | 1664 |
| |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
1652 | 1669 |
| |
1653 | 1670 |
| |
1654 | 1671 |
| |
| |||
1661 | 1678 |
| |
1662 | 1679 |
| |
1663 | 1680 |
| |
1664 |
| - | |
| 1681 | + | |
1665 | 1682 |
| |
| 1683 | + | |
| 1684 | + | |
1666 | 1685 |
| |
1667 | 1686 |
| |
1668 | 1687 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1196 | 1196 |
| |
1197 | 1197 |
| |
1198 | 1198 |
| |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
1199 | 1213 |
| |
1200 | 1214 |
| |
1201 | 1215 |
| |
|
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)