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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy