Commit 75e3077
Dag Wanvik
Bug#36487526 MDS Crash in X plugin protocol encoder
Also closes duplicate Bug#36505461.
When trying to return metadata, the code sees a visible column (the
first in the result set) which has no item_name set, which is
inconsistent; all visible items in the select list have item names
set.
The first column in the result set in this case (marked as visible) is
the COALESCE expression generated by the transform. This should have
been marked as a hidden item.
The underlying issue is that when the COALESCE is wrapped around the
expression in Item_singlerow_subselect::replace_scalar_subquery,
the new COALESCE doesn't inherit the hidden status of the expression
it is wrapping.
Solution: make COALESCE inherit the hidden status.
Change-Id: Ia44e605db378bfc46821af5cdfefdf90999033ab1 parent 4e7611d commit 75e3077
3 files changed
+31
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1657 | 1657 | | |
1658 | 1658 | | |
1659 | 1659 | | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
1660 | 1676 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
1123 | 1137 | | |
1124 | 1138 | | |
1125 | 1139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3065 | 3065 | | |
3066 | 3066 | | |
3067 | 3067 | | |
| 3068 | + | |
3068 | 3069 | | |
3069 | 3070 | | |
3070 | 3071 | | |
| |||
0 commit comments