BUG #5053: domain constraints still leak

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема BUG #5053: domain constraints still leak
Дата
Msg-id 200909140203.n8E23roO012573@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #5053: domain constraints still leak  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      5053
Logged by:          Andrew Gierth
Email address:      andrew@tao11.riddles.org.uk
PostgreSQL version: 8.5devel
Operating system:   FreeBSD
Description:        domain constraints still leak
Details:

Domain NOT NULL constraints (and probably other constraints too) aren't
being enforced in some code paths. e.g.

\pset null '<NULL>'
create domain tstdom as integer not null;
create table test (a tstdom);
insert into test values (null);
ERROR:  domain tstdom does not allow null values

all correct up to now, but:

insert into test select (r).* from (select null::test as r) s;
INSERT 0 1

oops.

select * from test;
   a
--------
 <NULL>
(1 row)

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

Предыдущее
От: Marek Wójtowicz
Дата:
Сообщение: Re: BUG #5052: lost history
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5053: domain constraints still leak