Skip site navigation (1) Skip section navigation (2)

Re: feature request ?

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
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 18:41:42
Message-ID: 20040624114027.X95843@megazone.bigpanda.com (view raw or flat)
Thread:
Lists: pgsql-sql
On Thu, 24 Jun 2004, Bruno Wolff III wrote:

> 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

True, but I think that mostly suffers from similar understandability
problems. :)


In response to

pgsql-sql by date

Next:From: Graham LeggettDate: 2004-06-24 18:51:08
Subject: Normalising an existing table - how?
Previous:From: Radu-Adrian PopescuDate: 2004-06-24 18:24:57
Subject: Re: feature request ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group