Re: BUG #2144: Domain NOT NULL constraints ignored in rules

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2144: Domain NOT NULL constraints ignored in rules
Дата
Msg-id 8660.1136413267@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2144: Domain NOT NULL constraints ignored in rules  ("John Supplee" <john@supplee.com>)
Ответы Re: BUG #2144: Domain NOT NULL constraints ignored in rules  ("John Supplee" <john@supplee.com>)
Список pgsql-bugs
"John Supplee" <john@supplee.com> writes:
> Description:        Domain NOT NULL constraints ignored in rules

Works for me:

regression=# create domain dint as int not null;
CREATE DOMAIN
regression=# create table t1 (f1 dint);
CREATE TABLE
regression=# create view v1 as select * from t1;
CREATE VIEW
regression=# create rule r1 as on insert to v1 do instead
regression-# insert into t1 values(new.f1);
CREATE RULE
regression=# insert into v1 values(1);
INSERT 0 1
regression=# insert into v1 values(null);
ERROR:  domain dint does not allow null values
regression=#

How about a test case?

            regards, tom lane

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

Предыдущее
От: Brian Hirt
Дата:
Сообщение: Re: BUG #2142: autovacuum process (PID 1641) was terminated by signal 11
Следующее
От: mike
Дата:
Сообщение: Re: BUG #2145: FTP Mirror to download is not found