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.
>
It should be possible to disambiguate them, I believe.
You might find that a CASE statement does a little less than you expect,
though, if like the rest of PL/pgSQL it follows Ada rules.
cheers
andrew