unexpected check constraint violation

Поиск
Список
Период
Сортировка
От Jacek Becla
Тема unexpected check constraint violation
Дата
Msg-id 49C7E8E1.4000905@SLAC.Stanford.EDU
обсуждение исходный текст
Ответы Re: unexpected check constraint violation  (Jeremy Harris <jgh@wizmail.org>)
Re: unexpected check constraint violation  (ries van Twisk <pg@rvt.dds.nl>)
Re: unexpected check constraint violation  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
Hi,

Can someone explain why postgres complains in this case:

create table t(d real, check(d>=0.00603));
insert into t values (0.00603);

ERROR:  new row for relation "t" violates check constraint "t_d_check"

thanks
Jacek

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] bash & postgres
Следующее
От: Jeremy Harris
Дата:
Сообщение: Re: unexpected check constraint violation