OSDN Git Service

More fixes, but still need +1 for FUNC_MAX_ARGS
authorBruce Momjian <bruce@momjian.us>
Tue, 11 Jan 2000 02:30:06 +0000 (02:30 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 11 Jan 2000 02:30:06 +0000 (02:30 +0000)
src/backend/catalog/pg_proc.c
src/backend/libpq/be-pqexec.c
src/include/config.h.in

index 9eea8cd..3e1c6c4 100644 (file)
@@ -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)
index 00b7aca..8b6a880 100644 (file)
@@ -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
index af03295..85cf001 100644 (file)
  * 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)
 
 /*