mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Add operator_with_argtypes grammar rule
This makes the handling of operators similar to that of functions and aggregates. Rename node FuncWithArgs to ObjectWithArgs, to reflect the expanded use. Reviewed-by: Jim Nasby <Jim.Nasby@BlueTreble.com> Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@ -2954,13 +2954,13 @@ _copyGrantStmt(const GrantStmt *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static FuncWithArgs *
|
||||
_copyFuncWithArgs(const FuncWithArgs *from)
|
||||
static ObjectWithArgs *
|
||||
_copyObjectWithArgs(const ObjectWithArgs *from)
|
||||
{
|
||||
FuncWithArgs *newnode = makeNode(FuncWithArgs);
|
||||
ObjectWithArgs *newnode = makeNode(ObjectWithArgs);
|
||||
|
||||
COPY_NODE_FIELD(funcname);
|
||||
COPY_NODE_FIELD(funcargs);
|
||||
COPY_NODE_FIELD(objname);
|
||||
COPY_NODE_FIELD(objargs);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
@ -5274,8 +5274,8 @@ copyObject(const void *from)
|
||||
case T_CommonTableExpr:
|
||||
retval = _copyCommonTableExpr(from);
|
||||
break;
|
||||
case T_FuncWithArgs:
|
||||
retval = _copyFuncWithArgs(from);
|
||||
case T_ObjectWithArgs:
|
||||
retval = _copyObjectWithArgs(from);
|
||||
break;
|
||||
case T_AccessPriv:
|
||||
retval = _copyAccessPriv(from);
|
||||
|
Reference in New Issue
Block a user