Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3b6073d

Browse files
committed
Remove some unnecessary code: since ExecMakeFunctionResultNoSets does not
want to handle set inputs, it should just pass NULL for isDone, not make its own failure check.
1 parent 8d6e9bc commit 3b6073d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/backend/executor/execQual.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.178 2005/05/09 14:28:39 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.179 2005/05/12 20:41:56 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1060,17 +1060,11 @@ ExecMakeFunctionResultNoSets(FuncExprState *fcache,
10601060
foreach(arg, fcache->args)
10611061
{
10621062
ExprState *argstate = (ExprState *) lfirst(arg);
1063-
ExprDoneCond thisArgIsDone;
10641063

10651064
fcinfo.arg[i] = ExecEvalExpr(argstate,
10661065
econtext,
10671066
&fcinfo.argnull[i],
1068-
&thisArgIsDone);
1069-
1070-
if (thisArgIsDone != ExprSingleResult)
1071-
ereport(ERROR,
1072-
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
1073-
errmsg("set-valued function called in context that cannot accept a set")));
1067+
NULL);
10741068
i++;
10751069
}
10761070

0 commit comments

Comments
 (0)