Commit 0b14b0c8 authored by Tom Lane's avatar Tom Lane

Use fmgr_array_args() to avoid dependency on FUNC_MAX_ARGS.

parent 72ed6ff5
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* This cruft is the server side of PQfn. * This cruft is the server side of PQfn.
...@@ -280,6 +280,7 @@ HandleFunctionRequest() ...@@ -280,6 +280,7 @@ HandleFunctionRequest()
int tmp; int tmp;
char *arg[FUNC_MAX_ARGS]; char *arg[FUNC_MAX_ARGS];
char *retval; char *retval;
bool isNull;
int i; int i;
uint32 palloced; uint32 palloced;
char *p; char *p;
...@@ -361,12 +362,7 @@ HandleFunctionRequest() ...@@ -361,12 +362,7 @@ HandleFunctionRequest()
} }
#ifndef NO_FASTPATH #ifndef NO_FASTPATH
retval = fmgr(fid, retval = fmgr_array_args(fid, nargs, arg, &isNull);
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]);
#else #else
retval = NULL; retval = NULL;
#endif /* NO_FASTPATH */ #endif /* NO_FASTPATH */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment