aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/readfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-07-06 17:26:27 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-07-06 17:26:42 -0400
commitdcffdc53496b47ece19bdf84a24997c4088c584d (patch)
treec7ddf5cf96a7f487c1007b4adb5aefe8c41b7987 /src/backend/nodes/readfuncs.c
parentae1123f9899fe80935ae344e38f18632beb1bf9a (diff)
downloadpostgresql-dcffdc53496b47ece19bdf84a24997c4088c584d.tar.gz
postgresql-dcffdc53496b47ece19bdf84a24997c4088c584d.zip
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.
Diffstat (limited to 'src/backend/nodes/readfuncs.c')
-rw-r--r--src/backend/nodes/readfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c
index 6a05b694152..014b3005af8 100644
--- a/src/backend/nodes/readfuncs.c
+++ b/src/backend/nodes/readfuncs.c
@@ -485,10 +485,10 @@ _readMergeWhenClause(void)
READ_BOOL_FIELD(matched);
READ_ENUM_FIELD(commandType, CmdType);
+ READ_ENUM_FIELD(override, OverridingKind);
READ_NODE_FIELD(condition);
READ_NODE_FIELD(targetList);
READ_NODE_FIELD(values);
- READ_ENUM_FIELD(override, OverridingKind);
READ_DONE();
}