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

From Richard Huxton
Subject Re: CHECK clause doesn't work with CASE clause
Date
Msg-id 200206271519.18725.dev@archonet.com
Whole thread Raw
In response to CHECK clause doesn't work with CASE clause  ("Jörg Holetschek" <mail2holly@gmx.de>)
List pgsql-sql
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




pgsql-sql by date:

Previous
From: Gunther Schadow
Date:
Subject: Re: Possibility of Index-Only access in PostgreSQL?
Next
From: Marcos Garcia
Date:
Subject: Re: Slow SELECT -> Growing Database