Fix ILIKE to honor collation when working in single-byte encodings.
Tom Lane <tgl@sss.pgh.pa.us>
Fix ILIKE to honor collation when working in single-byte encodings. The original collation patch only fixed the multi-byte code path. This change also ensures that ILIKE's idea of the case-folding rules is exactly the same as str_tolower's.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/like.c | modified | +65 −15 |
| src/backend/utils/adt/like_match.c | modified | +7 −5 |