From 717fa274d14d9cd25396b85bb92f567e1c623f0c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 8 Oct 2009 02:39:25 +0000 Subject: 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 --- src/backend/commands/typecmds.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/backend/commands/typecmds.c') diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c index 5fa2ac6bc90..4f997a0dce1 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.137 2009/07/30 02:45:36 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.138 2009/10/08 02:39:19 tgl Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -1267,7 +1267,7 @@ findTypeInputFunction(List *procname, Oid typeOid) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_FUNCTION), errmsg("function %s does not exist", - func_signature_string(procname, 1, argList)))); + func_signature_string(procname, 1, NIL, argList)))); return InvalidOid; /* keep compiler quiet */ } @@ -1318,7 +1318,7 @@ findTypeOutputFunction(List *procname, Oid typeOid) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_FUNCTION), errmsg("function %s does not exist", - func_signature_string(procname, 1, argList)))); + func_signature_string(procname, 1, NIL, argList)))); return InvalidOid; /* keep compiler quiet */ } @@ -1349,7 +1349,7 @@ findTypeReceiveFunction(List *procname, Oid typeOid) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_FUNCTION), errmsg("function %s does not exist", - func_signature_string(procname, 1, argList)))); + func_signature_string(procname, 1, NIL, argList)))); return InvalidOid; /* keep compiler quiet */ } @@ -1372,7 +1372,7 @@ findTypeSendFunction(List *procname, Oid typeOid) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_FUNCTION), errmsg("function %s does not exist", - func_signature_string(procname, 1, argList)))); + func_signature_string(procname, 1, NIL, argList)))); return InvalidOid; /* keep compiler quiet */ } @@ -1393,7 +1393,7 @@ findTypeTypmodinFunction(List *procname) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_FUNCTION), errmsg("function %s does not exist", - func_signature_string(procname, 1, argList)))); + func_signature_string(procname, 1, NIL, argList)))); if (get_func_rettype(procOid) != INT4OID) ereport(ERROR, @@ -1420,7 +1420,7 @@ findTypeTypmodoutFunction(List *procname) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_FUNCTION), errmsg("function %s does not exist", - func_signature_string(procname, 1, argList)))); + func_signature_string(procname, 1, NIL, argList)))); if (get_func_rettype(procOid) != CSTRINGOID) ereport(ERROR, @@ -1447,7 +1447,7 @@ findTypeAnalyzeFunction(List *procname, Oid typeOid) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_FUNCTION), errmsg("function %s does not exist", - func_signature_string(procname, 1, argList)))); + func_signature_string(procname, 1, NIL, argList)))); if (get_func_rettype(procOid) != BOOLOID) ereport(ERROR, -- cgit v1.2.3