AW: null in constraints - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: null in constraints
Date
Msg-id 11C1E6749A55D411A9670001FA687963368075@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
List pgsql-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

yes

> 
>   select * from test where a > 0;
> 
> doesn't return any null values.

yes

> 
> Is this the intended behaviour?

Yes, previous behavior was wrong.

Andreas


pgsql-hackers by date:

Previous
From: Andreas Degert
Date:
Subject: null in constraints
Next
From: Andreas Degert
Date:
Subject: alter table rename to ..