Skip to content

Commit 4fe6f72

Browse files
committed
Print a MergeJoin's mergeNullsFirst array as bool, not int.
It's declared as being an array of bool, but it's printed differently from the way bool and arrays of bool are handled elsewhere. Patch by Amit Kapila. Anomaly noted independently by Amit Kapila and KaiGai Kohei.
1 parent dc943ad commit 4fe6f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/nodes/outfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ _outMergeJoin(StringInfo str, const MergeJoin *node)
649649

650650
appendStringInfoString(str, " :mergeNullsFirst");
651651
for (i = 0; i < numCols; i++)
652-
appendStringInfo(str, " %d", (int) node->mergeNullsFirst[i]);
652+
appendStringInfo(str, " %s", booltostr(node->mergeNullsFirst[i]));
653653
}
654654

655655
static void

0 commit comments

Comments
 (0)