Re: SET NULL on NOT NULL field

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: SET NULL on NOT NULL field
Дата
Msg-id GNELIHDDFBOCMGBFGEFOEEDLCFAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: SET NULL on NOT NULL field  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> "Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> > I just noticed you can do this:
> > create table blah (
> >     a not null references test on delete set null
> > )
>
> > Should that be prevented?
>
> It already does.  Or did you mean disallow the declaration?  I can't see
> anything in SQL92 that recommends disallowing the declaration.

Hmmm, well you do get the 'failed to update null value in not null field'
when you actually delete something from the foreign table, but I guess
there's no reason to actually ban the declaration, as silly as it is...

Chris



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

Предыдущее
От: Alan Gutierrez
Дата:
Сообщение: Re: Windows Build System was: Win32 port patches
Следующее
От: Bruce Momjian
Дата:
Сообщение: Replication talk