diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-12-01 20:27:32 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-12-01 20:27:32 +0000 |
commit | 02f8c9a38297459c2664044ea6d98d91678a4d79 (patch) | |
tree | 0621cf592229f7933bca8193d632cd227031d710 /src/backend/executor/nodeFunctionscan.c | |
parent | 9ee7409ef7e1eb454083478b1e0b41b1240426ab (diff) | |
download | postgresql-02f8c9a38297459c2664044ea6d98d91678a4d79.tar.gz postgresql-02f8c9a38297459c2664044ea6d98d91678a4d79.zip |
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.
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
-rw-r--r-- | src/backend/executor/nodeFunctionscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |