BUG #2390: check constraint

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема BUG #2390: check constraint
Дата
Msg-id 200604121356.k3CDufEq016831@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2390: check constraint  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2390
Logged by:          Andreas Kretschmer
Email address:      andreas.kretschmer@schollglas.com
PostgreSQL version: 8.1.3
Operating system:   Debian Linux
Description:        check constraint
Details:

i want to add a check constraint like:

create table foo (i char(7) CHECK (i ~ '^[0-9]{6,7}$'));

i doesn't work, but if works, if i change the type for i to varchar(7).

Bug or feature?

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

Предыдущее
От: Martin Marques
Дата:
Сообщение: Re: [martin@bugs.unl.edu.ar: BUG in logs]
Следующее
От: "Eric Noriega"
Дата:
Сообщение: BUG #2391: "Similar to" pattern matching does not operate as documented