OSDN Git Service

Fix problems seen when result of a subselect was used in an
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Apr 1999 04:17:11 +0000 (04:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Apr 1999 04:17:11 +0000 (04:17 +0000)
commita58843b49afdc15c3e319072916a4d9390cf70b1
tree472b1f7033e0eb2d7de6f55844346cde0f518e71
parent4438b70b945f71ac35b5031d3f07e7e973449247
Fix problems seen when result of a subselect was used in an
expression context (ie, not at the top level of a WHERE clause).  Examples
like this one work now:
SELECT name, value FROM t1 as touter WHERE
(value/(SELECT AVG(value) FROM t1 WHERE name = touter.name)) > 0.75;
src/backend/executor/nodeSubplan.c
src/backend/parser/parse_expr.c