mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +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:
@@ -1095,10 +1095,10 @@ _equalGrantStmt(const GrantStmt *a, const GrantStmt *b)
|
||||
}
|
||||
|
||||
static bool
|
||||
_equalFuncWithArgs(const FuncWithArgs *a, const FuncWithArgs *b)
|
||||
_equalObjectWithArgs(const ObjectWithArgs *a, const ObjectWithArgs *b)
|
||||
{
|
||||
COMPARE_NODE_FIELD(funcname);
|
||||
COMPARE_NODE_FIELD(funcargs);
|
||||
COMPARE_NODE_FIELD(objname);
|
||||
COMPARE_NODE_FIELD(objargs);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -3532,8 +3532,8 @@ equal(const void *a, const void *b)
|
||||
case T_CommonTableExpr:
|
||||
retval = _equalCommonTableExpr(a, b);
|
||||
break;
|
||||
case T_FuncWithArgs:
|
||||
retval = _equalFuncWithArgs(a, b);
|
||||
case T_ObjectWithArgs:
|
||||
retval = _equalObjectWithArgs(a, b);
|
||||
break;
|
||||
case T_AccessPriv:
|
||||
retval = _equalAccessPriv(a, b);
|
||||
|
||||
Reference in New Issue
Block a user