Re: Regular expressions w localization problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Regular expressions w localization problem
Дата
Msg-id 24837.1132946461@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Regular expressions w localization problem  (Manuel Sugawara <masm@fciencias.unam.mx>)
Ответы Re: Regular expressions w localization problem  (Manuel Sugawara <masm@fciencias.unam.mx>)
Список pgsql-general
Manuel Sugawara <masm@fciencias.unam.mx> writes:
> I'm facing a problem I have seen before but never got the time to
> report until now that is biting me again. I have a table which has
> some CHECK constrains using regular expressions and one check is
> failing when I try to insert some valid data. The constraint
> definition is:

> �nombre propio v�lido� CHECK (nombre ~ '^[[:upper:]][[:lower:]]*([-\'. [:alpha:]]+)?$'::text)

> And the data is ``Jos� Luis''.

I believe the meanings of [[:upper:]] and friends depend on the database
locale, and the current code for them probably doesn't work at all in
multibyte database encodings either.  So, what locale and encoding
are you using?

            regards, tom lane

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

Предыдущее
От: Gregory Youngblood
Дата:
Сообщение: Resend: Question about PostgreSQL, pgpool, and Postfix
Следующее
От: Manuel Sugawara
Дата:
Сообщение: Re: Regular expressions w localization problem