pgsql: Change ILIKE to invoke lower() and then do plain LIKE comparison

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change ILIKE to invoke lower() and then do plain LIKE comparison
Date: 2006-09-04 18:32:56
Message-ID: 20060904183256.0F2C89FB2F4@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Change ILIKE to invoke lower() and then do plain LIKE comparison when
working in a multibyte encoding. This fixes the problems exhibited in
bug #1931 and other reports of ILIKE misbehavior in UTF8 encoding.
It's a pretty grotty solution though --- should rethink how to do it
after we install better locale support, someday.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
like.c (r1.64 -> r1.65)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/like.c.diff?r1=1.64&r2=1.65)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2006-09-04 19:29:19 pgsql: Backpatch to 8.1.X fix for to_timestamp() where "PM/AM"
Previous Message User H-saito 2006-09-04 18:14:24 npgsql - Npgsql: addendum of Japanese resource(resx).