Re: feature request ?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: sad <sad(at)bankir(dot)ru>, "Gregory S(dot) Williamson" <gsw(at)globexplorer(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: feature request ?
Date: 2004-06-24 17:43:05
Message-ID: 20040624174305.GA32506@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, Jun 24, 2004 at 07:34:18 -0700,
Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> wrote:
>
> I was thinking that something like Cs switch might work. There's still a
> question of the keywords because I don't like reusing case, but maybe
> something of the general form:
> case foo
> is true
> is false
> is null

There already is a syntax like this. You can do:
CASE boolean_expression
WHEN TRUE THEN whatever
WHEN FALSE THEN whatever
ELSE whatever
END

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Radu-Adrian Popescu 2004-06-24 18:24:57 Re: feature request ?
Previous Message Jaime Casanova 2004-06-24 17:32:59 Re: feature request ?