I just noticed you can do this:
create table blah ( a not null references test on delete set null)
Should that be prevented? It shouldn't be too hard to test for really...
Chris