From 02f8c9a38297459c2664044ea6d98d91678a4d79 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 1 Dec 2002 20:27:32 +0000 Subject: Fix ExecMakeTableFunctionResult() to work with generic expressions as well as function calls. This is needed for cases where the planner has constant-folded or inlined the original function call. Possibly we should back-patch this change into 7.3 branch as well. --- src/backend/executor/nodeFunctionscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/executor/nodeFunctionscan.c') diff --git a/src/backend/executor/nodeFunctionscan.c b/src/backend/executor/nodeFunctionscan.c index cf8d74a06f2..97da70b2b78 100644 --- a/src/backend/executor/nodeFunctionscan.c +++ b/src/backend/executor/nodeFunctionscan.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/nodeFunctionscan.c,v 1.12 2002/09/04 20:31:18 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/nodeFunctionscan.c,v 1.13 2002/12/01 20:27:32 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -78,7 +78,7 @@ FunctionNext(FunctionScan *node) TupleDesc funcTupdesc; scanstate->tuplestorestate = tuplestorestate = - ExecMakeTableFunctionResult((Expr *) scanstate->funcexpr, + ExecMakeTableFunctionResult(scanstate->funcexpr, econtext, scanstate->tupdesc, &funcTupdesc); -- cgit v1.2.3