summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2017-11-02 15:56:18 -0700
committerIgor Babaev <igor@askmonty.org>2017-11-02 15:57:13 -0700
commitbeac522b550b0c8b9c7a4451bf1b851e83fd828f (patch)
treeee1babdd05b2c8ca93670b17e010d00d831e3da1 /sql/sql_select.h
parentb0cfb1686773c38955c254d29d196c1866e7e06a (diff)
downloadmariadb-git-beac522b550b0c8b9c7a4451bf1b851e83fd828f.tar.gz
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.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 886a66c3ef4..8ee05973132 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -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();
};