Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group