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

Commitbcfeca5

Browse files
committed
Check calling context for connectby_text(), per Joe Conway.
1 parentc42581e commitbcfeca5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎contrib/tablefunc/tablefunc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,11 @@ connectby_text(PG_FUNCTION_ARGS)
10481048
MemoryContextper_query_ctx;
10491049
MemoryContextoldcontext;
10501050

1051+
/* check to see if caller supports us returning a tuplestore */
1052+
if (!rsinfo|| !(rsinfo->allowedModes&SFRM_Materialize))
1053+
elog(ERROR,"connectby: materialize mode required, but it is not "
1054+
"allowed in this context");
1055+
10511056
if (fcinfo->nargs==6)
10521057
{
10531058
branch_delim=GET_STR(PG_GETARG_TEXT_P(5));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp