Fix ILIKE to honor collation when working in single-byte encodings.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 00f11f419caa873b44d70071d4ade0b8c75e7f36
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-04-09T21:12:39Z
Releases: 9.1.0
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

PathChange+/−
src/backend/utils/adt/like.c modified +65 −15
src/backend/utils/adt/like_match.c modified +7 −5