Commit cfffe83b authored by Tom Lane's avatar Tom Lane

Fix incorrect field type for PlannedStmt.jitFlags in outfuncs/readfuncs.

This field was a bool at one point, but now it's an int.
Spotted by Hari Babu; trivial patch is by Ashutosh Bapat.

Discussion: https://postgr.es/m/CAJrrPGedKiFE2fqntSauUfhapCksOJzam+QtHfSgx86LhXLeOQ@mail.gmail.com
parent 84549ebd
...@@ -272,7 +272,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node) ...@@ -272,7 +272,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node)
WRITE_BOOL_FIELD(transientPlan); WRITE_BOOL_FIELD(transientPlan);
WRITE_BOOL_FIELD(dependsOnRole); WRITE_BOOL_FIELD(dependsOnRole);
WRITE_BOOL_FIELD(parallelModeNeeded); WRITE_BOOL_FIELD(parallelModeNeeded);
WRITE_BOOL_FIELD(jitFlags); WRITE_INT_FIELD(jitFlags);
WRITE_NODE_FIELD(planTree); WRITE_NODE_FIELD(planTree);
WRITE_NODE_FIELD(rtable); WRITE_NODE_FIELD(rtable);
WRITE_NODE_FIELD(resultRelations); WRITE_NODE_FIELD(resultRelations);
......
...@@ -1518,7 +1518,7 @@ _readPlannedStmt(void) ...@@ -1518,7 +1518,7 @@ _readPlannedStmt(void)
READ_BOOL_FIELD(transientPlan); READ_BOOL_FIELD(transientPlan);
READ_BOOL_FIELD(dependsOnRole); READ_BOOL_FIELD(dependsOnRole);
READ_BOOL_FIELD(parallelModeNeeded); READ_BOOL_FIELD(parallelModeNeeded);
READ_BOOL_FIELD(jitFlags); READ_INT_FIELD(jitFlags);
READ_NODE_FIELD(planTree); READ_NODE_FIELD(planTree);
READ_NODE_FIELD(rtable); READ_NODE_FIELD(rtable);
READ_NODE_FIELD(resultRelations); READ_NODE_FIELD(resultRelations);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment