Re: Evaluation of if conditions

Поиск
Список
Период
Сортировка
От Joe
Тема Re: Evaluation of if conditions
Дата
Msg-id 44FF5C60.80601@freedomcircle.net
обсуждение исходный текст
Ответ на Evaluation of if conditions  (Daniel CAUNE <d.caune@free.fr>)
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Gregory S. Williamson"
Дата:
Сообщение: Re: Evaluation of if conditions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Evaluation of if conditions