1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed mdev-14093 Wrong result upon JOIN with INDEX with no rows

in joined table + GROUP BY + GROUP_CONCAT + HAVING + ORDER BY
[by field from HAVING] + 1 row expected

The fix is actually a port of the fix for bug #17055185 from
mysql code line (see commit f289aeeef0743508ff87211084453b3b88a6d017
by Mithun C Y into mysql-5.6). The test case for the bug #17055185
was also ported.
This commit is contained in:
Igor Babaev
2017-11-02 15:56:18 -07:00
parent b0cfb16867
commit beac522b55
4 changed files with 261 additions and 76 deletions

View File

@ -1692,6 +1692,7 @@ private:
*/
bool implicit_grouping;
void cleanup_item_list(List<Item> &items) const;
bool add_having_as_table_cond(JOIN_TAB *tab);
bool make_aggr_tables_info();
};