Re: why it doesn't work? referential integrity - Mailing list pgsql-general

From Gregory Stark
Subject Re: why it doesn't work? referential integrity
Date
Msg-id 878x8i2q7q.fsf@oxford.xeocode.com
Whole thread Raw
In response to why it doesn't work? referential integrity  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: why it doesn't work? referential integrity  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-general
"Pavel Stehule" <pavel.stehule@gmail.com> writes:

>   checked_by INT REFERENCES users (id) ON UPDATE CASCADE ON DELETE SET NULL,

> CONTEXT:  SQL statement "UPDATE ONLY "public"."tasks" SET "worker" =
> NULL WHERE $1 OPERATOR(pg_catalog.=) "worker""

This says you mistyped the constraint above to refer to tasks(worker) instead
of users(id). Did you?

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


pgsql-general by date:

Previous
From: "Pavel Stehule"
Date:
Subject: why it doesn't work? referential integrity
Next
From: "Pavel Stehule"
Date:
Subject: Re: why it doesn't work? referential integrity