From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
Cc: | Drew Whittle <drew(at)albatross(dot)co(dot)nz>, pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] WHERE parent IN (0,-1) |
Date: | 1999-07-28 17:47:23 |
Message-ID: | 10969.933184043@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
>> 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?
Indeed, there is no reduce conflict created by using a_expr, so I went
ahead and committed it. Also tidied the list-generating code a bit.
Stuff like
select * from int4_tbl where f1 not in (0,123455+1);
seems to work fine now.
Drew, if you don't want to wait around for 6.6 to fix this, you
should be able to just change the occurrences of AexprConst to a_expr
in the productions for in_expr_nodes: and not_in_expr_nodes: in
src/backend/parser/gram.y. I wouldn't advise trying to copy the current
gram.y into 6.5, since there are a bunch of other changes in it already...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Hagerty | 1999-07-28 18:05:34 | Join with blank records. |
Previous Message | Thomas Lockhart | 1999-07-28 14:47:43 | Re: [SQL] WHERE parent IN (0,-1) |