pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Poole <rp@guests.deus.net>
To: pgsql-sql@postgresql.org
Subject: Re: CHECK clause doesn't work with CASE clause
Date: Thu, 27 Jun 2002 16:02:08 +0100
Message-ID: <20020627150207.GA10473@guests.deus.net> (raw)
In-Reply-To: <afenai$2291$1@news.hub.org>
References: <afenai$2291$1@news.hub.org>

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





view thread (3+ messages)

Message-ID: <20020627150207.GA10473@guests.deus.net>
Permalink:  ../20020627150207.GA10473@guests.deus.net/
Also on:    postgresql.org/message-id/20020627150207.GA10473@guests.deus.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rp@guests.deus.net
  Subject: Re: CHECK clause doesn't work with CASE clause
  In-Reply-To: <20020627150207.GA10473@guests.deus.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox