From: Richard Huxton <dev@archonet.com>
To: Jörg Holetschek <mail2holly@gmx.de>
To: pgsql-sql@postgresql.org
Subject: Re: CHECK clause doesn't work with CASE clause
Date: Thu, 27 Jun 2002 15:19:18 +0100
Message-ID: <200206271519.18725.dev@archonet.com> (raw)
In-Reply-To: <afenai$2291$1@news.hub.org>
References: <afenai$2291$1@news.hub.org>
On Thursday 27 Jun 2002 10:52 am, Jörg Holetschek wrote:
> Hi folks,
>
> I have a problem with a CHECK clause that doesn't seem to work properly.
> WHEN ((focus <> NULL) AND (epilepsy_class = 'f')) THEN
> WHEN ((focus <> NULL) AND (epilepsy_class IN ('g',
> It shouldn't be possible to insert a value into focus when epilepsy_class
> has one of the values 'g' or 'n'. But it is. Can anyone help?
Should that not be "IS NOT NULL"?
- Richard Huxton
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: dev@archonet.com, mail2holly@gmx.de
Subject: Re: CHECK clause doesn't work with CASE clause
In-Reply-To: <200206271519.18725.dev@archonet.com>
* 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