mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Support use of function argument names to identify which actual arguments
match which function parameters. The syntax uses AS, for example funcname(value AS arg1, anothervalue AS arg2) Pavel Stehule
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/regproc.c,v 1.110 2009/01/01 17:23:49 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/regproc.c,v 1.111 2009/10/08 02:39:23 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -131,7 +131,7 @@ regprocin(PG_FUNCTION_ARGS)
|
||||
* pg_proc entries in the current search path.
|
||||
*/
|
||||
names = stringToQualifiedNameList(pro_name_or_oid);
|
||||
clist = FuncnameGetCandidates(names, -1, false, false);
|
||||
clist = FuncnameGetCandidates(names, -1, NIL, false, false);
|
||||
|
||||
if (clist == NULL)
|
||||
ereport(ERROR,
|
||||
@ -190,7 +190,7 @@ regprocout(PG_FUNCTION_ARGS)
|
||||
* qualify it.
|
||||
*/
|
||||
clist = FuncnameGetCandidates(list_make1(makeString(proname)),
|
||||
-1, false, false);
|
||||
-1, NIL, false, false);
|
||||
if (clist != NULL && clist->next == NULL &&
|
||||
clist->oid == proid)
|
||||
nspname = NULL;
|
||||
@ -277,7 +277,7 @@ regprocedurein(PG_FUNCTION_ARGS)
|
||||
*/
|
||||
parseNameAndArgTypes(pro_name_or_oid, false, &names, &nargs, argtypes);
|
||||
|
||||
clist = FuncnameGetCandidates(names, nargs, false, false);
|
||||
clist = FuncnameGetCandidates(names, nargs, NIL, false, false);
|
||||
|
||||
for (; clist; clist = clist->next)
|
||||
{
|
||||
|
Reference in New Issue
Block a user