pgsql: Fix ILIKE to honor collation when working in single-byte encodin

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix ILIKE to honor collation when working in single-byte encodin
Date: 2011-04-09 21:12:53
Message-ID: E1Q8fSf-00087n-Nb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/00f11f419caa873b44d70071d4ade0b8c75e7f36

Modified Files
--------------
src/backend/utils/adt/like.c | 80 +++++++++++++++++++++++++++++-------
src/backend/utils/adt/like_match.c | 12 +++--
2 files changed, 72 insertions(+), 20 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-04-09 21:16:03 pgsql: Add collation support on Windows (MSVC build)
Previous Message User Achernow 2011-04-09 20:29:35 libpqtypes - libpqtypes: added PQparamDup to duplicate an existing