Re: BUG #13665: Foreign Key constraint doesn't work

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #13665: Foreign Key constraint doesn't work
Дата
Msg-id 20151007022402.GA4405@alvherre.pgsql
обсуждение исходный текст
Ответ на BUG #13665: Foreign Key constraint doesn't work  (irina.guberman@gmail.com)
Список pgsql-bugs
irina.guberman@gmail.com wrote:
> The following bug has been logged on the website:
>
> Bug reference:      13665
> Logged by:          Irina
> Email address:      irina.guberman@gmail.com
> PostgreSQL version: 9.4.4
> Operating system:   Mac
> Description:
>
> I can enter rows with null value in a foreign key constrained column.

Yes.  This is not a bug.  If you want to prohibit NULL values, you need
to declare the column as NOT NULL.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

Предыдущее
От: irina.guberman@gmail.com
Дата:
Сообщение: BUG #13665: Foreign Key constraint doesn't work
Следующее
От: Francisco Olarte
Дата:
Сообщение: Re: BUG #13665: Foreign Key constraint doesn't work