1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

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.
This commit is contained in:
Tom Lane
2002-12-01 20:27:32 +00:00
parent 9ee7409ef7
commit 02f8c9a382
3 changed files with 103 additions and 62 deletions

View File

@ -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);