Re: CHECK clause doesn't work with CASE clause - Mailing list pgsql-sql

From Richard Poole
Subject Re: CHECK clause doesn't work with CASE clause
Date
Msg-id 20020627150207.GA10473@guests.deus.net
Whole thread Raw
In response to CHECK clause doesn't work with CASE clause  ("Jörg Holetschek" <mail2holly@gmx.de>)
List pgsql-sql
On Thu, Jun 27, 2002 at 11:52:54AM +0200, J?rg Holetschek wrote:
> Hi folks,
> 
> I have a problem with a CHECK clause that doesn't seem to work properly. The

>                   CASE
>                      WHEN ((focus <> NULL) AND (epilepsy_class = 'f')) THEN
> TRUE
>                      WHEN ((focus <> NULL) AND (epilepsy_class IN ('g',
> 'n'))) THEN FALSE
>                   END),

The condition "focus <> NULL" can't ever come out true. You probably
mean IS NOT NULL.

Richard




pgsql-sql by date:

Previous
From: Masaru Sugawara
Date:
Subject: Re: 2 Selects 1 is faster, why?
Next
From: Gunther Schadow
Date:
Subject: Re: Possibility of Index-Only access in PostgreSQL?