forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit86488cd
committed
Disallow creating binary-coercible casts involving range types.
For a long time we have forbidden binary-coercible casts to or fromcomposite and array types, because such a cast cannot work correctly:the type OID embedded in the value would need to change, but it won'tin a binary coercion. That reasoning applies equally to range types,but we overlooked installing a similar restriction here when weinvented range types. Do so now.Given the lack of field complaints, we won't change this in stablebranches, but it seems not too late for v17.Per discussion of a problem noted by Peter Eisentraut.Discussion:https://postgr.es/m/076968e1-0852-40a9-bc0b-117cd3f0e43c@eisentraut.org1 parentc01743a commit86488cd
1 file changed
+24
-11
lines changedLines changed: 24 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1689 | 1689 |
| |
1690 | 1690 |
| |
1691 | 1691 |
| |
1692 |
| - | |
1693 |
| - | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1694 | 1695 |
| |
1695 | 1696 |
| |
1696 |
| - | |
1697 |
| - | |
1698 |
| - | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
1699 | 1704 |
| |
1700 | 1705 |
| |
1701 | 1706 |
| |
1702 | 1707 |
| |
1703 | 1708 |
| |
1704 | 1709 |
| |
1705 | 1710 |
| |
1706 |
| - | |
1707 |
| - | |
1708 |
| - | |
1709 |
| - | |
1710 |
| - | |
1711 |
| - | |
1712 | 1711 |
| |
1713 | 1712 |
| |
1714 | 1713 |
| |
1715 | 1714 |
| |
1716 | 1715 |
| |
1717 | 1716 |
| |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1718 | 1731 |
| |
1719 | 1732 |
| |
1720 | 1733 |
| |
|
0 commit comments
Comments
(0)