From 401e6de7ee8850c521fdbc05d3ddbc7df3275489 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 11 Jan 2000 02:30:06 +0000 Subject: [PATCH] More fixes, but still need +1 for FUNC_MAX_ARGS --- src/backend/catalog/pg_proc.c | 4 ++-- src/backend/libpq/be-pqexec.c | 4 +++- src/include/config.h.in | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/catalog/pg_proc.c b/src/backend/catalog/pg_proc.c index 9eea8cd126..3e1c6c4667 100644 --- a/src/backend/catalog/pg_proc.c +++ b/src/backend/catalog/pg_proc.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.37 2000/01/10 17:14:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.38 2000/01/11 02:30:05 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -80,7 +80,7 @@ ProcedureCreate(char *procedureName, { Value *t = lfirst(x); - if (parameterCount == FUNC_MAX_ARGS) + if (parameterCount > FUNC_MAX_ARGS) elog(ERROR, "Procedures cannot take more than %d arguments",FUNC_MAX_ARGS); if (strcmp(strVal(t), "opaque") == 0) diff --git a/src/backend/libpq/be-pqexec.c b/src/backend/libpq/be-pqexec.c index 00b7aca8de..8b6a880e2e 100644 --- a/src/backend/libpq/be-pqexec.c +++ b/src/backend/libpq/be-pqexec.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.26 2000/01/10 17:14:35 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.27 2000/01/11 02:30:06 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -81,6 +81,8 @@ PQfn(int fnid, retval = (char *) fmgr(fnid, 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]); /* ---------------- * put the result in the buffer the user specified and diff --git a/src/include/config.h.in b/src/include/config.h.in index af032952ef..85cf00112d 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -101,7 +101,7 @@ * pgsql/src/backend/utils/fmgr/fmgr.c and add additional entries * to the 'case' statement for the additional arguments. */ -#define INDEX_MAX_KEYS 8 +#define INDEX_MAX_KEYS 16 #define FUNC_MAX_ARGS (INDEX_MAX_KEYS+1) /* -- 2.40.0