Commit 488c6dd
committed
Improve error message for ALTER COLUMN TYPE coercion failure.
Per recent discussion, the error message for this was actually a trifle
inaccurate, since it said "cannot be cast" which might be incorrect.
Adjust that wording, and add a HINT suggesting that a USING clause might
be needed.1 parent 6593c5b commit 488c6dd
File tree
2 files changed
+9
-6
lines changed- src
- backend/commands
- test/regress/expected
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7315 | 7315 | | |
7316 | 7316 | | |
7317 | 7317 | | |
7318 | | - | |
7319 | | - | |
| 7318 | + | |
| 7319 | + | |
| 7320 | + | |
7320 | 7321 | | |
7321 | 7322 | | |
7322 | 7323 | | |
| |||
7482 | 7483 | | |
7483 | 7484 | | |
7484 | 7485 | | |
7485 | | - | |
| 7486 | + | |
7486 | 7487 | | |
7487 | 7488 | | |
7488 | 7489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
1676 | | - | |
| 1676 | + | |
| 1677 | + | |
1677 | 1678 | | |
1678 | 1679 | | |
1679 | 1680 | | |
| |||
1688 | 1689 | | |
1689 | 1690 | | |
1690 | 1691 | | |
1691 | | - | |
| 1692 | + | |
| 1693 | + | |
1692 | 1694 | | |
1693 | 1695 | | |
1694 | 1696 | | |
| |||
1723 | 1725 | | |
1724 | 1726 | | |
1725 | 1727 | | |
1726 | | - | |
| 1728 | + | |
1727 | 1729 | | |
1728 | 1730 | | |
1729 | 1731 | | |
| |||
0 commit comments