Commit a540f786 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Add one-line fix to allow redefining built-in functions.

 Bug introduced in mid-January.
parent 8ecc01cf
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.15 1998/02/26 04:37:40 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.16 1998/03/07 06:03:28 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -199,6 +199,7 @@ fmgr_info(Oid procedureId, FmgrInfo *finfo) ...@@ -199,6 +199,7 @@ fmgr_info(Oid procedureId, FmgrInfo *finfo)
if (!finfo->fn_addr) if (!finfo->fn_addr)
elog(ERROR, "fmgr_info: function %s: not in internal table", elog(ERROR, "fmgr_info: function %s: not in internal table",
procedureStruct->proname.data); procedureStruct->proname.data);
finfo->fn_nargs = procedureStruct->pronargs;
break; break;
case ClanguageId: case ClanguageId:
finfo->fn_addr = fmgr_dynamic(procedureId, &(finfo->fn_nargs)); finfo->fn_addr = fmgr_dynamic(procedureId, &(finfo->fn_nargs));
......
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