Assert failure with ICU support

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Assert failure with ICU support
Дата
Msg-id CAMbWs49Q6UoKGeT8pBkMtJGJd+16CBFZaaWUk9Du+2ERE5g_YA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Assert failure with ICU support  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Assert failure with ICU support  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-bugs
I happened to run into an assert failure by chance with ICU support.
Here is the query:

    SELECT '1' SIMILAR TO '\൧';

The failure happens in lexescape(),

        default:
            assert(iscalpha(c));
            FAILW(REG_EESCAPE); /* unknown alphabetic escape */
            break;

Without ICU support, the same query just gives an error.

# SELECT '1' SIMILAR TO '\൧';
ERROR:  invalid regular expression: invalid escape \ sequence

FWIW, I googled a bit and '൧' seems to be number 1 in Malayalam.

Thanks
Richard

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17903: There is a bug in the KeepLogSeg()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Assert failure with ICU support