summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2000-01-12 05:28:47 +0000
committerTom Lane2000-01-12 05:28:47 +0000
commit0b14b0c87eaf59ebb3f2a5d133f252702eacece0 (patch)
tree4a05b56faa12e1700effd36b3dd5eecd6df2d474
parent72ed6ff5ad100972e1bf29cef7128102a4598b67 (diff)
Use fmgr_array_args() to avoid dependency on FUNC_MAX_ARGS.
-rw-r--r--src/backend/tcop/fastpath.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c
index 230babf1648..c3cfd6ce74e 100644
--- a/src/backend/tcop/fastpath.c
+++ b/src/backend/tcop/fastpath.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.35 2000/01/11 03:33:14 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.36 2000/01/12 05:28:47 tgl Exp $
*
* NOTES
* This cruft is the server side of PQfn.
@@ -280,6 +280,7 @@ HandleFunctionRequest()
int tmp;
char *arg[FUNC_MAX_ARGS];
char *retval;
+ bool isNull;
int i;
uint32 palloced;
char *p;
@@ -361,12 +362,7 @@ HandleFunctionRequest()
}
#ifndef NO_FASTPATH
- retval = fmgr(fid,
- arg[0], arg[1], arg[2], arg[3],
- arg[4], arg[5], arg[6], arg[7],
- arg[8], arg[9], arg[10], arg[11],
- arg[12], arg[13], arg[14], arg[15]);
-
+ retval = fmgr_array_args(fid, nargs, arg, &isNull);
#else
retval = NULL;
#endif /* NO_FASTPATH */