forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc28b289
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 parent5e900bc commitc28b289
File tree
3 files changed
+57
-13
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+57
-13
lines changedLines changed: 34 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| 86 | + | |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
| |||
1586 | 1587 |
| |
1587 | 1588 |
| |
1588 | 1589 |
| |
1589 |
| - | |
| 1590 | + | |
| 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 | + | |
1606 | 1608 |
| |
1607 |
| - | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
1608 | 1612 |
| |
1609 | 1613 |
| |
1610 | 1614 |
| |
| |||
1619 | 1623 |
| |
1620 | 1624 |
| |
1621 | 1625 |
| |
1622 |
| - | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
1623 | 1629 |
| |
1624 | 1630 |
| |
1625 | 1631 |
| |
| |||
1663 | 1669 |
| |
1664 | 1670 |
| |
1665 | 1671 |
| |
1666 |
| - | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1667 | 1675 |
| |
1668 | 1676 |
| |
1669 | 1677 |
| |
1670 | 1678 |
| |
1671 | 1679 |
| |
1672 | 1680 |
| |
1673 | 1681 |
| |
1674 |
| - | |
1675 |
| - | |
1676 |
| - | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
1677 | 1690 |
| |
1678 | 1691 |
| |
1679 |
| - | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1680 | 1695 |
| |
1681 | 1696 |
| |
1682 |
| - | |
| 1697 | + | |
1683 | 1698 |
| |
1684 | 1699 |
| |
1685 | 1700 |
| |
| |||
1694 | 1709 |
| |
1695 | 1710 |
| |
1696 | 1711 |
| |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
1697 | 1716 |
| |
1698 | 1717 |
| |
1699 | 1718 |
| |
| |||
1706 | 1725 |
| |
1707 | 1726 |
| |
1708 | 1727 |
| |
1709 |
| - | |
| 1728 | + | |
1710 | 1729 |
| |
| 1730 | + | |
| 1731 | + | |
1711 | 1732 |
| |
1712 | 1733 |
| |
1713 | 1734 |
| |
|
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)