Re:

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re:
Дата
Msg-id 19284.962635870@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ...  ("Alexei A.Romanenko" <A.A.Romanenko@inp.nsk.su>)
Список pgsql-bugs
"Alexei A.Romanenko" <A.A.Romanenko@inp.nsk.su> writes:
> It seems to me there is a problem with regular expressions.
> When i create table and try to insert some restriction for
> a fields, system accept it. Then, whem i insert something, which
> dont match to regexp, it inserted anyway or backwards.

No bug there.  You've forgotten that a char(N) field value will be
space-padded to N characters.  For variable-length strings you
ought to be using varchar(N) instead.  If you really want to use
char(N), you can match with regexps like 'foo *$'.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: \d* won't work in 7.0.2?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: joins on the same table with aggregates