projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc943ad
)
Print a MergeJoin's mergeNullsFirst array as bool, not int.
author
Robert Haas
<
[email protected]
>
Wed, 23 Sep 2015 14:53:29 +0000
(10:53 -0400)
committer
Robert Haas
<
[email protected]
>
Wed, 23 Sep 2015 14:53:29 +0000
(10:53 -0400)
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.
src/backend/nodes/outfuncs.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/nodes/outfuncs.c
b/src/backend/nodes/outfuncs.c
index e1b49d57fafdc1a4afc4cc22a63027d1e6481ede..37222008665b26013aae0c5557734119846cb5db 100644
(file)
--- 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