forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd8d4298
committed
Fix collations when we call transformWhereClause from outside the parser.
Previous patches took care of assorted places that call transformExpr fromoutside the main parser, but I overlooked the fact that some places usetransformWhereClause as a shortcut for transformExpr + coerce_to_boolean.In particular this broke collation-sensitive index WHERE clauses, as perreport from Thom Brown. Trigger WHEN and rule WHERE clauses too.I'm not forcing initdb for this fix, but any affected indexes, triggers,or rules will need to be dropped and recreated.1 parent2594cf0 commitd8d4298
2 files changed
+9
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| |||
282 | 283 |
| |
283 | 284 |
| |
284 | 285 |
| |
| 286 | + | |
| 287 | + | |
285 | 288 |
| |
286 | 289 |
| |
287 | 290 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1829 | 1829 |
| |
1830 | 1830 |
| |
1831 | 1831 |
| |
| 1832 | + | |
1832 | 1833 |
| |
1833 | 1834 |
| |
1834 | 1835 |
| |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
1835 | 1839 |
| |
1836 | 1840 |
| |
1837 | 1841 |
| |
| |||
1959 | 1963 |
| |
1960 | 1964 |
| |
1961 | 1965 |
| |
| 1966 | + | |
| 1967 | + | |
1962 | 1968 |
| |
1963 | 1969 |
| |
1964 | 1970 |
| |
|
0 commit comments
Comments
(0)