Re: [HACKERS] expr ? trueval : falseval

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Brett McCormick <brett(at)work(dot)chicken(dot)org>
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] expr ? trueval : falseval
Date: 1998-03-20 17:02:55
Message-ID: 3512A13F.6FEA7F01@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-03-20 17:03:31 Re: [HACKERS] expr ? trueval : falseval
Previous Message Tom Ivar Helbekkmo 1998-03-20 16:40:01 Re: [HACKERS] tables >2GB