forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc0c12ce
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 parentde0dc0b commitc0c12ce
File tree
3 files changed
+50
-5
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+50
-5
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1437 | 1437 |
| |
1438 | 1438 |
| |
1439 | 1439 |
| |
1440 |
| - | |
1441 |
| - | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
1442 | 1443 |
| |
1443 | 1444 |
| |
1444 | 1445 |
| |
| |||
1449 | 1450 |
| |
1450 | 1451 |
| |
1451 | 1452 |
| |
1452 |
| - | |
| 1453 | + | |
| 1454 | + | |
1453 | 1455 |
| |
1454 | 1456 |
| |
1455 | 1457 |
| |
|
Lines changed: 34 additions & 1 deletion
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 |
| |
| |||
1860 | 1892 |
| |
1861 | 1893 |
| |
1862 | 1894 |
| |
| 1895 | + | |
1863 | 1896 |
| |
1864 | 1897 |
| |
1865 |
| - | |
| 1898 | + | |
1866 | 1899 |
| |
1867 | 1900 |
|
Lines changed: 11 additions & 1 deletion
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 |
| |
| |||
704 | 713 |
| |
705 | 714 |
| |
706 | 715 |
| |
| 716 | + | |
707 | 717 |
| |
708 | 718 |
| |
709 |
| - | |
| 719 | + | |
710 | 720 |
| |
711 | 721 |
| |
712 | 722 |
|
0 commit comments
Comments
(0)