aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-02-01 19:43:54 +0000
committerBruce Momjian <bruce@momjian.us>1998-02-01 19:43:54 +0000
commit6159ba3ab12c1aed7729497ed8a03b6a0a915f43 (patch)
tree98e6b92acc17acf5451d6b167461d8021f482e73 /src/backend/parser/parse_expr.c
parent44030ef2297bd1fcf0ffe70ca7a42fa9b787157e (diff)
downloadpostgresql-6159ba3ab12c1aed7729497ed8a03b6a0a915f43.tar.gz
postgresql-6159ba3ab12c1aed7729497ed8a03b6a0a915f43.zip
AIX patch from Darren King and Univel patch from Billy Allie, mostly
related to grammar and parser issues, with one postmaster fix.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-rw-r--r--src/backend/parser/parse_expr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c
index 485054eac11..e4f0eace9ec 100644
--- a/src/backend/parser/parse_expr.c
+++ b/src/backend/parser/parse_expr.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.12 1998/01/20 22:11:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.13 1998/02/01 19:43:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -242,25 +242,24 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
{
SubLink *sublink = (SubLink *) expr;
QueryTreeList *qtree;
- Query *subselect;
List *llist;
qtree = parse_analyze(lcons(sublink->subselect,NIL), pstate);
Assert(qtree->len == 1);
- sublink->subselect = (Node *) subselect = qtree->qtrees[0];
+ sublink->subselect = (Node *) qtree->qtrees[0];
foreach(llist, sublink->lefthand)
lfirst(llist) = transformExpr(pstate, lfirst(llist), precedence);
if (length(sublink->lefthand) !=
- length(subselect->targetList))
+ length(sublink->subselect->targetList))
elog(ERROR,"Subselect has too many or too few fields.");
if (sublink->subLinkType != EXISTS_SUBLINK)
{
char *op = lfirst(sublink->oper);
List *left_expr = sublink->lefthand;
- List *right_expr = subselect->targetList;
+ List *right_expr = sublink->subselect->targetList;
List *elist;
sublink->oper = NIL;