mirror of
https://github.com/postgres/postgres.git
synced 2025-06-02 00:01:40 -04:00
Put back blessing of record-function tupledesc, which I removed in a
fit of over-optimization.
This commit is contained in:
parent
939712ee73
commit
0453a997af
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/executor/nodeFunctionscan.c,v 1.32 2005/03/31 22:46:08 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/executor/nodeFunctionscan.c,v 1.33 2005/04/14 22:09:40 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -211,6 +211,13 @@ ExecInitFunctionScan(FunctionScan *node, EState *estate)
|
|||||||
elog(ERROR, "function in FROM has unsupported return type");
|
elog(ERROR, "function in FROM has unsupported return type");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* For RECORD results, make sure a typmod has been assigned. (The
|
||||||
|
* function should do this for itself, but let's cover things in case
|
||||||
|
* it doesn't.)
|
||||||
|
*/
|
||||||
|
BlessTupleDesc(tupdesc);
|
||||||
|
|
||||||
scanstate->tupdesc = tupdesc;
|
scanstate->tupdesc = tupdesc;
|
||||||
ExecSetSlotDescriptor(scanstate->ss.ss_ScanTupleSlot,
|
ExecSetSlotDescriptor(scanstate->ss.ss_ScanTupleSlot,
|
||||||
tupdesc, false);
|
tupdesc, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user