From: Joe <dev@freedomcircle.net>
To: Daniel CAUNE <d.caune@free.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: Evaluation of if conditions
Date: Wed, 06 Sep 2006 19:40:17 -0400
Message-ID: <44FF5C60.80601@freedomcircle.net> (raw)
In-Reply-To: <001601c6d204$5d2cd840$0b00a8c0@tedy>
References: <001601c6d204$5d2cd840$0b00a8c0@tedy>
Daniel CAUNE wrote:
> Hi,
>
> How does the IF statement evaluate conditions? Does it evaluate conditions
> following their declaration order from left to right? In case of
> or-conditions, does the IF statement stop evaluating conditions whenever a
> first or-condition is true?
>
Please see 4.2.12. Expression Evaluation Rules of the manual:
The order of evaluation of subexpressions is not defined. In particular,
the inputs of an operator or function are not necessarily evaluated
left-to-right or in any other fixed order.
There's more examples there too.
Joe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@freedomcircle.net, d.caune@free.fr
Subject: Re: Evaluation of if conditions
In-Reply-To: <44FF5C60.80601@freedomcircle.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox