null in constraints

From: Andreas Degert <ad(at)papyrus-gmbh(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: null in constraints
Date: 2000-09-13 08:44:46
Message-ID: 87r96o7kap.fsf@tarzan.noname
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2000-09-13 08:53:20 AW: null in constraints
Previous Message Andreas Degert 2000-09-13 08:36:54 like-operator on index-scan