FK issue

From: mike <mike(at)bristolreccc(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: FK issue
Date: 2004-06-10 15:21:53
Message-ID: 1086880913.12907.2.camel@datacc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have set up a FK as follows

ALTER TABLE lk_sub_con ADD FOREIGN KEY (type) REFERENCES
lk_sort_of_contact(type_code);

However when I do this

INSERT INTO lk_sort_of_contact (type_code) VALUES ('1') (ie: a NULL into
the FK) it works

Is this a bug?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2004-06-10 15:45:22 Re: FK issue
Previous Message Milos Prudek 2004-06-10 15:17:11 Re: encrypted passwords