Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 55b8ac8

Browse files
committed
Fix wrong field order in _readMergeWhenClause().
We hadn't noticed this because it's dead code: there is no situation where we read raw parse trees from text format. So maybe the right fix is to remove the function altogether, but I'll forbear for now; it's not the only dead code in readfuncs.c, I think. Noted while comparing existing code to the results of Peter's auto-generation script.
1 parent 0229106 commit 55b8ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/nodes/readfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,10 @@ _readMergeWhenClause(void)
485485

486486
READ_BOOL_FIELD(matched);
487487
READ_ENUM_FIELD(commandType, CmdType);
488+
READ_ENUM_FIELD(override, OverridingKind);
488489
READ_NODE_FIELD(condition);
489490
READ_NODE_FIELD(targetList);
490491
READ_NODE_FIELD(values);
491-
READ_ENUM_FIELD(override, OverridingKind);
492492

493493
READ_DONE();
494494
}

0 commit comments

Comments
 (0)