Skip to content

Commit 03febc6

Browse files
committed
Clean up func_error() function completely removing caller variable as
"more info then user requires"
1 parent d85a542 commit 03febc6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/parser/parse_func.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.10 1998/02/02 02:12:34 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.11 1998/02/05 03:35:48 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -728,7 +728,7 @@ func_get_detail(char *funcname,
728728
funcname);
729729
elog(NOTICE, "that satisfies the given argument types. you will have to");
730730
elog(NOTICE, "retype your query using explicit typecasts.");
731-
func_error("func_get_detail", funcname, nargs, oid_array);
731+
func_error(funcname, nargs, oid_array);
732732
}
733733
else
734734
{
@@ -758,7 +758,7 @@ func_get_detail(char *funcname,
758758
elog(ERROR, "no such attribute or function \"%s\"",
759759
funcname);
760760
}
761-
func_error("func_get_detail", funcname, nargs, oid_array);
761+
func_error(funcname, nargs, oid_array);
762762
}
763763
else
764764
{
@@ -1276,7 +1276,7 @@ ParseComplexProjection(ParseState *pstate,
12761276
* argument types
12771277
*/
12781278
void
1279-
func_error(char *caller, char *funcname, int nargs, Oid *argtypes)
1279+
func_error(char *funcname, int nargs, Oid *argtypes)
12801280
{
12811281
char p[(NAMEDATALEN + 2) * MAXFMGRARGS],
12821282
*ptr;
@@ -1301,5 +1301,5 @@ func_error(char *caller, char *funcname, int nargs, Oid *argtypes)
13011301
ptr += strlen(ptr);
13021302
}
13031303

1304-
elog(ERROR, "%s: function %s(%s) does not exist", caller, funcname, p);
1304+
elog(ERROR, "function %s(%s) does not exist", funcname, p);
13051305
}

0 commit comments

Comments
 (0)