mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +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:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.365 2009/10/06 00:55:26 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.366 2009/10/08 02:39:21 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every node type that can appear in stored rules' parsetrees *must*
|
||||
@ -875,6 +875,17 @@ _outFuncExpr(StringInfo str, FuncExpr *node)
|
||||
WRITE_LOCATION_FIELD(location);
|
||||
}
|
||||
|
||||
static void
|
||||
_outNamedArgExpr(StringInfo str, NamedArgExpr *node)
|
||||
{
|
||||
WRITE_NODE_TYPE("NAMEDARGEXPR");
|
||||
|
||||
WRITE_NODE_FIELD(arg);
|
||||
WRITE_STRING_FIELD(name);
|
||||
WRITE_INT_FIELD(argnumber);
|
||||
WRITE_LOCATION_FIELD(location);
|
||||
}
|
||||
|
||||
static void
|
||||
_outOpExpr(StringInfo str, OpExpr *node)
|
||||
{
|
||||
@ -2514,6 +2525,9 @@ _outNode(StringInfo str, void *obj)
|
||||
case T_FuncExpr:
|
||||
_outFuncExpr(str, obj);
|
||||
break;
|
||||
case T_NamedArgExpr:
|
||||
_outNamedArgExpr(str, obj);
|
||||
break;
|
||||
case T_OpExpr:
|
||||
_outOpExpr(str, obj);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user