aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-09-23 10:53:29 -0400
committerRobert Haas <rhaas@postgresql.org>2015-09-23 10:53:29 -0400
commit4fe6f72bda7b4c3eb39560e3da50a093d833647d (patch)
tree7ee057a0242fc79ac06ae01b8192707b555550d7 /src
parentdc943ad952329a46ce8dc0103b0980e1fe5893a8 (diff)
downloadpostgresql-4fe6f72bda7b4c3eb39560e3da50a093d833647d.tar.gz
postgresql-4fe6f72bda7b4c3eb39560e3da50a093d833647d.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/nodes/outfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index e1b49d57faf..37222008665 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -649,7 +649,7 @@ _outMergeJoin(StringInfo str, const MergeJoin *node)
appendStringInfoString(str, " :mergeNullsFirst");
for (i = 0; i < numCols; i++)
- appendStringInfo(str, " %d", (int) node->mergeNullsFirst[i]);
+ appendStringInfo(str, " %s", booltostr(node->mergeNullsFirst[i]));
}
static void