mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
31ee98580d
git-svn-id: file:///svn/mysql/tests/mysql-test@23577 c7de825b-a66e-492c-adef-691d508d4ae1
36 lines
967 B
Text
36 lines
967 B
Text
#--source include/have_tokudb.inc
|
|
SET STORAGE_ENGINE='tokudb';
|
|
#
|
|
# Bug #22169: Crash with count(distinct)
|
|
#
|
|
--echo *** Bug #22169 ***
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS z1;
|
|
--enable_warnings
|
|
|
|
create table z1 (a int, b int, c int, d int, e int, primary key (c,d), clustering key (a,b));
|
|
|
|
insert into z1 values (1,1,1,1,1), (1,2,3,4,5), (3,4,1,100,1),(3,4,1,2,3),(3,5,1,21,1),(7,8,4,2,6),(9,10,34,3,2);
|
|
insert into z1 values (-1,-1,-1,-1,-1), (-1,-2,-3,-4,-5), (-3,-4,-1,-100,-1),(-3,-4,-1,-2,-3),(-3,-5,-1,-21,-1),(-7,-8,-4,-2,-6),(-9,-10,-34,-3,-2);
|
|
|
|
|
|
select * from z1 group by a,b;
|
|
|
|
|
|
explain select a,b from z1 where a > 1;
|
|
select a,b from z1 where a > 1;
|
|
|
|
explain select a,b from z1 where a >=1 and b > 1;
|
|
select a,b from z1 where a >=1 and b > 1;
|
|
|
|
explain select a,b from z1 where a > 3;
|
|
select a,b from z1 where a > 3;
|
|
|
|
explain select a,b from z1 where a >=3 and b > 4;
|
|
select a,b from z1 where a >=3 and b > 4;
|
|
|
|
|
|
select distinct a from z1;
|
|
|
|
DROP TABLE z1;
|