forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1f050c0
committed
Fix bug in support for collation attributes on older ICU versions
Unrecognized attribute names are supposed to be ignored. But the codewould error out on an unrecognized attribute value even if it did notrecognize the attribute name. So unrecognized attributes wouldn'treally be ignored unless the value happened to be one that matched arecognized value. This would break some important cases where theattribute would be processed by ucol_open() directly. Fix that andadd a test case.The restructured code should also avoid compiler warnings aboutinitializing a UColAttribute value to -1, because the type might be anunsigned enum. (reported by Andres Freund)1 parent53680c1 commit1f050c0
File tree
3 files changed
+23
-4
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+23
-4
lines changedLines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1623 | 1623 |
| |
1624 | 1624 |
| |
1625 | 1625 |
| |
1626 |
| - | |
1627 |
| - | |
| 1626 | + | |
| 1627 | + | |
1628 | 1628 |
| |
1629 | 1629 |
| |
1630 | 1630 |
| |
| |||
1650 | 1650 |
| |
1651 | 1651 |
| |
1652 | 1652 |
| |
1653 |
| - | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1654 | 1656 |
| |
1655 | 1657 |
| |
1656 | 1658 |
| |
| |||
1677 | 1679 |
| |
1678 | 1680 |
| |
1679 | 1681 |
| |
1680 |
| - | |
| 1682 | + | |
1681 | 1683 |
| |
1682 | 1684 |
| |
1683 | 1685 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1101 | 1101 |
| |
1102 | 1102 |
| |
1103 | 1103 |
| |
| 1104 | + | |
1104 | 1105 |
| |
1105 | 1106 |
| |
1106 | 1107 |
| |
| |||
1139 | 1140 |
| |
1140 | 1141 |
| |
1141 | 1142 |
| |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1142 | 1152 |
| |
1143 | 1153 |
| |
1144 | 1154 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
| 430 | + | |
| 431 | + | |
430 | 432 |
| |
431 | 433 |
| |
432 | 434 |
| |
| |||
445 | 447 |
| |
446 | 448 |
| |
447 | 449 |
| |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
448 | 455 |
| |
449 | 456 |
| |
450 | 457 |
| |
|
0 commit comments
Comments
(0)