Clean up func_error() function completely removing caller variable as
"more info then user requires"
This commit is contained in:
parent
d85a5420f7
commit
03febc634b
@ -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,
|
|||||||
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,
|
|||||||
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,
|
|||||||
* 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)
|
|||||||
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user