Re: proposal for 8.4: PL/pgSQL - statement CASE

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Subject: Re: proposal for 8.4: PL/pgSQL - statement CASE
Date: 2008-01-17 16:11:42
Message-ID: 478F7E3E.3030004@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joshua D. Drake wrote:
> Josh Berkus wrote:
>> Pavel,
>>
>>> I propose add this statement to PL/pgSQL too.
>>
>> Isn't there a danger of syntactical conflict with the SQL SELECT ...
>> CASE statement?
>>
>> I'd love to have CASE in PL/pgSQL, but I always thought that stood in
>> the way.
>>
>
> Could it be called SWITCH instead?
>
>

That would surely defeat the whole point of having this. We want to have
the same syntax as PL/SQL, not different syntax for the same things.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-01-17 16:18:56 Re: proposal for 8.4: PL/pgSQL - statement CASE
Previous Message Bruce Momjian 2008-01-17 16:10:47 Re: [HACKERS] SSL over Unix-domain sockets