Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] "and then" / "or else"

From: Christian Schröder <cs(at)deriva.de>
Date: Sat Nov 17 2007 - 09:41:23 EST


Michael Glaesemann wrote:
> On Nov 17, 2007, at 3:53 , Christian Schröder wrote:
>
>> Unfortunately, the trick from the docs (chapter 4.2.12) using "case
>> ... then" does not work inside an "if" statement (the "then" of the
>> "case" is interpreted as belonging to the "if" and thus leads to a
>> syntax error).
>
> I think if you use parentheses you can avoid the syntax error:
Ah, I didn't know that parentheses are allowed here. (And I must admit I didn't try.)
Nonetheless, I think it would improve readability to have an extra operator for this.

Regards,

    Christian

-- 
Deriva GmbH                         Tel.: +49 551 489500-42
Financial IT and Consulting         Fax:  +49 551 489500-91
Hans-Böckler-Straße 2                  
http://www.deriva.de
D-37079 Göttingen

Deriva CA Certificate: 
http://www.deriva.de/deriva-ca.cer


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly
Received on Sat Nov 17 12:47:38 2007

This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 20:06:40 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library