Re: ERROR: syntax error in tsquery - for high-unicode whitespace

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: ERROR: syntax error in tsquery - for high-unicode whitespace
Дата
Msg-id 20130315130304.GA12307@depesz.com
обсуждение исходный текст
Ответ на Re: ERROR: syntax error in tsquery - for high-unicode whitespace  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Thu, Mar 14, 2013 at 11:56:19PM -0400, Tom Lane wrote:
> hubert depesz lubaczewski <depesz@depesz.com> writes:
> > $ select to_tsquery('english', E'a\xe2\x80\x86a');
> > ERROR:  syntax error in tsquery: "a a"
>
> > the 3-byte utf8 character is SIX-PER-EM SPACE (based on info from
> > http://www.fileformat.info/info/unicode/char/2006/index.htm)
>
> AFAICS, that behavior is correct, if you're using a locale that reports
>   as being whitespace.  Compare
>
> u8e=# select to_tsquery('english', E'a a');
> ERROR:  syntax error in tsquery: "a a"
>
> You need an ampersand or something in there.
> Or use plainto_tsquery().

Right. Thanks. Not sure how I missed that.

Best regards,

depesz

--
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: syntax error in tsquery - for high-unicode whitespace
Следующее
От: Rikard Pavelic
Дата:
Сообщение: Re: BUG #7943: plpgsql parsing bug