Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0453a99

Browse files
committed
Put back blessing of record-function tupledesc, which I removed in a
fit of over-optimization.
1 parent939712e commit0453a99

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/backend/executor/nodeFunctionscan.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/nodeFunctionscan.c,v 1.32 2005/03/31 22:46:08 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/nodeFunctionscan.c,v 1.33 2005/04/14 22:09:40 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -211,6 +211,13 @@ ExecInitFunctionScan(FunctionScan *node, EState *estate)
211211
elog(ERROR,"function in FROM has unsupported return type");
212212
}
213213

214+
/*
215+
* For RECORD results, make sure a typmod has been assigned. (The
216+
* function should do this for itself, but let's cover things in case
217+
* it doesn't.)
218+
*/
219+
BlessTupleDesc(tupdesc);
220+
214221
scanstate->tupdesc=tupdesc;
215222
ExecSetSlotDescriptor(scanstate->ss.ss_ScanTupleSlot,
216223
tupdesc, false);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp