From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Drew Whittle <drew@albatross.co.nz>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] WHERE parent IN (0,-1)
Date: Wed, 28 Jul 1999 14:47:43 +0000
Message-ID: <379F180F.F96796FB@alumni.caltech.edu> (raw)
References: <9643.933169622@sss.pgh.pa.us>
> >> I can get around the problem (I think) by using WHERE parent IN
> >> (0,'-1').
> It's a grammar problem. in_expr_nodes and not_in_expr_nodes expect
> the elements of the IN-list to be AexprConst ... I wonder why not
> a_expr instead? Might be a reduce conflict, but I bet we could at
> least use b_expr. Thomas, any comments?
The immediate problem is with handling the minus sign; I should be
able to fix that (I had changed the handling of minus signs to get
better behavior with cases like "- 1" and "2-1" in other contexts). My
recollection is that SQL92 allows only lists of constants, and there
may have been shift/reduce problems with doing more than that. Will
poke at it in between getting Bruce's man pages going ;)
- Thomas
--
Thomas Lockhart lockhart@alumni.caltech.edu
South Pasadena, California
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: lockhart@alumni.caltech.edu, tgl@sss.pgh.pa.us, drew@albatross.co.nz
Subject: Re: [SQL] WHERE parent IN (0,-1)
In-Reply-To: <379F180F.F96796FB@alumni.caltech.edu>
References: <9643.933169622@sss.pgh.pa.us> <379F180F.F96796FB@alumni.caltech.edu>
* 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