forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb009823
committed
Improve error message and hint for ALTER COLUMN TYPE can't-cast failure.
We already tried to improve this once, but the "improved" text was ratheroff-target if you had provided a USING clause. Also, it seems helpfulto provide the exact text of a suggested USING clause, so users can justcopy-and-paste it when needed. Per complaint from Keith Rarick and asuggestion from Merlin Moncure.Back-patch to 9.2 where the current wording was adopted.1 parentb5fe620 commitb009823
File tree
3 files changed
+26
-7
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+26
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7888 | 7888 | | |
7889 | 7889 | | |
7890 | 7890 | | |
7891 | | - | |
7892 | | - | |
7893 | | - | |
7894 | | - | |
7895 | | - | |
| 7891 | + | |
| 7892 | + | |
| 7893 | + | |
| 7894 | + | |
| 7895 | + | |
| 7896 | + | |
| 7897 | + | |
| 7898 | + | |
| 7899 | + | |
| 7900 | + | |
| 7901 | + | |
| 7902 | + | |
| 7903 | + | |
| 7904 | + | |
| 7905 | + | |
| 7906 | + | |
| 7907 | + | |
| 7908 | + | |
| 7909 | + | |
| 7910 | + | |
7896 | 7911 | | |
7897 | 7912 | | |
7898 | 7913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | | - | |
| 1668 | + | |
1669 | 1669 | | |
1670 | 1670 | | |
1671 | 1671 | | |
| |||
1680 | 1680 | | |
1681 | 1681 | | |
1682 | 1682 | | |
1683 | | - | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
1684 | 1687 | | |
1685 | 1688 | | |
1686 | 1689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
| 1178 | + | |
1178 | 1179 | | |
1179 | 1180 | | |
1180 | 1181 | | |
| |||
0 commit comments
Comments
(0)