forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfec1ad9
committed
Include typmod when complaining about inherited column type mismatches.
MergeAttributes() rejects cases where columns to be merged have the sametype but different typmod, which is correct; but the error message itprinted didn't show either typmod, which is unhelpful. Changing thisrequires using format_type_with_typemod() in place of TypeNameToString(),which will have some minor side effects on the way some type names areprinted, but on balance this is an improvement: the old code sometimesprinted one type according to one set of rules and the other type accordingto the other set, which could be confusing in its own way.Oddly, there were no regression test cases covering any of this behavior,so add some.Complaint and fix by Amit Langote1 parent3d2b31e commitfec1ad9
File tree
3 files changed
+40
-4
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+40
-4
lines changedLines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1613 | 1613 |
| |
1614 | 1614 |
| |
1615 | 1615 |
| |
1616 |
| - | |
1617 |
| - | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
1618 | 1620 |
| |
1619 | 1621 |
| |
1620 | 1622 |
| |
| |||
1832 | 1834 |
| |
1833 | 1835 |
| |
1834 | 1836 |
| |
1835 |
| - | |
1836 |
| - | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
1837 | 1841 |
| |
1838 | 1842 |
| |
1839 | 1843 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1268 | 1268 |
| |
1269 | 1269 |
| |
1270 | 1270 |
| |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1271 | 1292 |
| |
1272 | 1293 |
| |
1273 | 1294 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
906 | 906 |
| |
907 | 907 |
| |
908 | 908 |
| |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
909 | 920 |
| |
910 | 921 |
| |
911 | 922 |
| |
|
0 commit comments
Comments
(0)