mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
@@ -987,8 +987,6 @@ _equalQuery(const Query *a, const Query *b)
|
||||
COMPARE_NODE_FIELD(setOperations);
|
||||
COMPARE_NODE_FIELD(constraintDeps);
|
||||
COMPARE_NODE_FIELD(withCheckOptions);
|
||||
COMPARE_NODE_FIELD(mergeSourceTargetList);
|
||||
COMPARE_NODE_FIELD(mergeActionList);
|
||||
COMPARE_LOCATION_FIELD(stmt_location);
|
||||
COMPARE_LOCATION_FIELD(stmt_len);
|
||||
|
||||
@@ -1044,30 +1042,6 @@ _equalUpdateStmt(const UpdateStmt *a, const UpdateStmt *b)
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
_equalMergeStmt(const MergeStmt *a, const MergeStmt *b)
|
||||
{
|
||||
COMPARE_NODE_FIELD(relation);
|
||||
COMPARE_NODE_FIELD(source_relation);
|
||||
COMPARE_NODE_FIELD(join_condition);
|
||||
COMPARE_NODE_FIELD(mergeActionList);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
_equalMergeAction(const MergeAction *a, const MergeAction *b)
|
||||
{
|
||||
COMPARE_SCALAR_FIELD(matched);
|
||||
COMPARE_SCALAR_FIELD(commandType);
|
||||
COMPARE_NODE_FIELD(condition);
|
||||
COMPARE_NODE_FIELD(qual);
|
||||
COMPARE_NODE_FIELD(stmt);
|
||||
COMPARE_NODE_FIELD(targetList);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
_equalSelectStmt(const SelectStmt *a, const SelectStmt *b)
|
||||
{
|
||||
@@ -3259,12 +3233,6 @@ equal(const void *a, const void *b)
|
||||
case T_UpdateStmt:
|
||||
retval = _equalUpdateStmt(a, b);
|
||||
break;
|
||||
case T_MergeStmt:
|
||||
retval = _equalMergeStmt(a, b);
|
||||
break;
|
||||
case T_MergeAction:
|
||||
retval = _equalMergeAction(a, b);
|
||||
break;
|
||||
case T_SelectStmt:
|
||||
retval = _equalSelectStmt(a, b);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user