Re: UTF8MatchText - Mailing list pgsql-patches

From Tom Lane
Subject Re: UTF8MatchText
Date
Msg-id 17562.1179455706@sss.pgh.pa.us
Whole thread Raw
In response to Re: UTF8MatchText  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Responses Re: UTF8MatchText
Re: UTF8MatchText
List pgsql-patches
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> Yes, I only used the 'disjoint representations for first-bytes and
> not-first-bytes of MB characters' feature in UTF8. Other encodings
> allows both [AB] and [BA] for MB character patterns. UTF8Match() does
> not cope with those encodings; If we have '[AB][AB]' in a table and
> search it with LIKE '%[BA]%', we judge that they are matched by mistake.

AFAICS, the patch does *not* make that mistake because % will not
advance over a fractional character.

            regards, tom lane

pgsql-patches by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: UTF8MatchText
Next
From: Andrew Dunstan
Date:
Subject: Re: UTF8MatchText