aboutsummaryrefslogtreecommitdiff
path: root/src
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
commit55b8ac81723c45dca95d4ad4892a1ee28db37c23 (patch)
tree6050614e426cbeb91038ba45da3104fc3690169a /src
parent0229106afab93e9868e758f4b555daafcfac4b75 (diff)
downloadpostgresql-55b8ac81723c45dca95d4ad4892a1ee28db37c23.tar.gz
postgresql-55b8ac81723c45dca95d4ad4892a1ee28db37c23.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')
-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();
}