diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2014-03-14 18:52:16 +0100 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2014-03-14 18:52:16 +0100 |
commit | 365ba070fe34336e5f2423b5104172bcf6b601ba (patch) | |
tree | 3d11c1e11ac125da02f46dcfe5c874c1c25684b8 /mysql-test/r/blackhole.result | |
parent | 43a43b8289f97c9e731d7c2014df801f21d2ce73 (diff) | |
download | mariadb-git-365ba070fe34336e5f2423b5104172bcf6b601ba.tar.gz |
MDEV-5814: MySQL Bug#13948247 DIVISION BY 0 IN GET_BEST_DISJUNCT_QUICK WITH FORCE INDEX GROUP BY
- Adopt MySQL's fix: don't run index_merge optimizer if the table statistics
reports that the table has 0 rows.
Diffstat (limited to 'mysql-test/r/blackhole.result')
-rw-r--r-- | mysql-test/r/blackhole.result | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/blackhole.result b/mysql-test/r/blackhole.result index 317070ca08e..16a97927262 100644 --- a/mysql-test/r/blackhole.result +++ b/mysql-test/r/blackhole.result @@ -9,3 +9,11 @@ SELECT 1 FROM t1 WHERE a = ANY (SELECT a FROM t2); 1 DROP TABLE t1, t2; End of 5.5 tests +# +# Bug#13948247 DIVISION BY 0 IN GET_BEST_DISJUNCT_QUICK WITH FORCE INDEX GROUP BY +# +CREATE TABLE t1(a INT, b INT, c INT, KEY(c), UNIQUE(a)) ENGINE = BLACKHOLE; +SELECT 0 FROM t1 FORCE INDEX FOR GROUP BY(a) WHERE a = 0 OR b = 0 AND c = 0; +0 +DROP TABLE t1; +End of 5.6 tests |