Re: [HACKERS] expr ? trueval : falseval - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] expr ? trueval : falseval
Date
Msg-id 3512A13F.6FEA7F01@alumni.caltech.edu
Whole thread Raw
In response to expr ? trueval : falseval  (Brett McCormick <brett@work.chicken.org>)
List pgsql-hackers
Brett McCormick wrote:
>
> expr ? trueval : falseval
>
> if expr evaluated is true, the entire expression is trueval evaluated,
> otherwise it is falseval evaluated.
>
> Is it possible to have this sort of grammar logic in the parser?

I suspect that this is covered in the SQL92 CASE expression, which we
don't yet support.

              - Tom

pgsql-hackers by date:

Previous
From: Coronach
Date:
Subject: psql nested queries with 2000+ records
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] expr ? trueval : falseval