diff options
author | Gleb Shchepa <gshchepa@mysql.com> | 2009-05-13 12:51:39 +0500 |
---|---|---|
committer | Gleb Shchepa <gshchepa@mysql.com> | 2009-05-13 12:51:39 +0500 |
commit | 585cf08fe6a8d6e237732daa94a969f93e5c84ec (patch) | |
tree | f5fa0d7730c8cfc2b04e482e9032f07c8703e842 /mysql-test/r/innodb.result | |
parent | d2fe2a71dafc7d2fcdfb29970f37c5dbd6681df9 (diff) | |
download | mariadb-git-585cf08fe6a8d6e237732daa94a969f93e5c84ec.tar.gz |
Bug #44290: explain crashes for subquery with distinct in
SQL_SELECT::test_quick_select
The crash was caused by an incomplete cleanup of JOIN_TAB::select
during the filesort of rows for GROUP BY clause inside a subquery.
Queries where a quick index access is replaced with filesort was
was affected. For example:
SELECT 1 FROM
(SELECT COUNT(DISTINCT c1) FROM t1
WHERE c2 IN (1, 1) AND c3 = 2 GROUP BY c2) x
Quick index access related data in the SQL_SELECT::test_quick_select
function was inconsistent after an incomplete cleanup.
This function has been completed to prevent crashes in the
SQL_SELECT::test_quick_select function.
mysql-test/include/mix1.inc:
Add test case for bug #44290.
mysql-test/r/innodb_mysql.result:
Add test case for bug #44290.
sql/sql_select.cc:
Bug #44290: explain crashes for subquery with distinct in
SQL_SELECT::test_quick_select
Quick index access related data in the SQL_SELECT::test_quick_select
function was inconsistent after an incomplete cleanup.
This function has been completed to prevent crashes in the
SQL_SELECT::test_quick_select function.
Diffstat (limited to 'mysql-test/r/innodb.result')
0 files changed, 0 insertions, 0 deletions