FK issue - Mailing list pgsql-general

From mike
Subject FK issue
Date
Msg-id 1086880913.12907.2.camel@datacc
Whole thread Raw
Responses Re: FK issue
Re: FK issue
Re: FK issue
List 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?

pgsql-general by date:

Previous
From: Milos Prudek
Date:
Subject: Re: encrypted passwords
Next
From: Doug McNaught
Date:
Subject: Re: FK issue