mirror of
https://github.com/postgres/postgres.git
synced 2025-11-13 16:22:44 +03:00
More fixes, but still need +1 for FUNC_MAX_ARGS
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user