Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[HACKERS] null in constraints

0 views
Skip to first unread message

Andreas Degert

unread,
Sep 13, 2000, 4:47:54 AM9/13/00
to
Hello Hackers,

with V7.02, it seems when a constraint evalutes to 'null', it behaves
like 'true'. I'm rather sure this behaviour changed from V6.x, though I
can't check it.

example:

create table test (a int4 check (a > 0));

allows a to be null. But

select * from test where a > 0;

doesn't return any null values.

Is this the intended behaviour?

cheers
Andreas

0 new messages