forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc914e74
committed
Fix planner's test for case-foldable characters in ILIKE with ICU.
As coded, the ICU-collation path in pattern_char_isalpha() failedto consider regular ASCII letters to be case-varying. This led tolike_fixed_prefix treating too much of an ILIKE pattern as being afixed prefix, so that indexscans derived from an ILIKE clause mightmiss entries that they should find.Per bug #15892 from James Inform. This is an oversight in the originalICU patch (commiteccfef8), so back-patch to v10 where that came in.Discussion:https://postgr.es/m/15892-e5d2bea3e8a04a1b@postgresql.org1 parentceb850d commitc914e74
File tree
3 files changed
+47
-4
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+47
-4
lines changedLines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5815 | 5815 |
| |
5816 | 5816 |
| |
5817 | 5817 |
| |
5818 |
| - | |
5819 |
| - | |
5820 |
| - | |
| 5818 | + | |
| 5819 | + | |
| 5820 | + | |
| 5821 | + | |
5821 | 5822 |
| |
5822 | 5823 |
| |
5823 | 5824 |
| |
| |||
5828 | 5829 |
| |
5829 | 5830 |
| |
5830 | 5831 |
| |
5831 |
| - | |
| 5832 | + | |
| 5833 | + | |
5832 | 5834 |
| |
5833 | 5835 |
| |
5834 | 5836 |
| |
|
Lines changed: 32 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
976 | 976 |
| |
977 | 977 |
| |
978 | 978 |
| |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
979 | 1011 |
| |
980 | 1012 |
| |
981 | 1013 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
336 | 345 |
| |
337 | 346 |
| |
338 | 347 |
| |
|
0 commit comments
Comments
(0)