Commit 03febc63 authored by Marc G. Fournier's avatar Marc G. Fournier

Clean up func_error() function completely removing caller variable as

"more info then user requires"
parent d85a5420
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.10 1998/02/02 02:12:34 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.11 1998/02/05 03:35:48 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -728,7 +728,7 @@ func_get_detail(char *funcname, ...@@ -728,7 +728,7 @@ func_get_detail(char *funcname,
funcname); funcname);
elog(NOTICE, "that satisfies the given argument types. you will have to"); elog(NOTICE, "that satisfies the given argument types. you will have to");
elog(NOTICE, "retype your query using explicit typecasts."); elog(NOTICE, "retype your query using explicit typecasts.");
func_error("func_get_detail", funcname, nargs, oid_array); func_error(funcname, nargs, oid_array);
} }
else else
{ {
...@@ -758,7 +758,7 @@ func_get_detail(char *funcname, ...@@ -758,7 +758,7 @@ func_get_detail(char *funcname,
elog(ERROR, "no such attribute or function \"%s\"", elog(ERROR, "no such attribute or function \"%s\"",
funcname); funcname);
} }
func_error("func_get_detail", funcname, nargs, oid_array); func_error(funcname, nargs, oid_array);
} }
else else
{ {
...@@ -1276,7 +1276,7 @@ ParseComplexProjection(ParseState *pstate, ...@@ -1276,7 +1276,7 @@ ParseComplexProjection(ParseState *pstate,
* argument types * argument types
*/ */
void void
func_error(char *caller, char *funcname, int nargs, Oid *argtypes) func_error(char *funcname, int nargs, Oid *argtypes)
{ {
char p[(NAMEDATALEN + 2) * MAXFMGRARGS], char p[(NAMEDATALEN + 2) * MAXFMGRARGS],
*ptr; *ptr;
...@@ -1301,5 +1301,5 @@ func_error(char *caller, char *funcname, int nargs, Oid *argtypes) ...@@ -1301,5 +1301,5 @@ func_error(char *caller, char *funcname, int nargs, Oid *argtypes)
ptr += strlen(ptr); ptr += strlen(ptr);
} }
elog(ERROR, "%s: function %s(%s) does not exist", caller, funcname, p); elog(ERROR, "function %s(%s) does not exist", funcname, p);
} }
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