mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
option to free_root() to not my_free() the blocks
fixed bug/updated count_distinct2 test changed reset in count distinct to avoid calls to my_free() include/my_sys.h: option to free_root() not to do my_free() include/my_tree.h: reset_tree() mysql-test/r/count_distinct2.result: added group by test mysql-test/t/count_distinct2.test: group by test + fixed bug - need to drop table mysys/my_alloc.c: mark_blocks_free() mysys/tree.c: reset_tree() sql/item_sum.cc: in count distinct reset_tree instead of delete_tree
This commit is contained in:
@ -70,3 +70,7 @@ count(distinct s,t)
|
||||
5
|
||||
count(distinct n1) count(distinct n2)
|
||||
2 3
|
||||
count(distinct n2) n1
|
||||
1 NULL
|
||||
1 1
|
||||
3 2
|
||||
|
@ -40,3 +40,6 @@ select distinct s,t from t1;
|
||||
select count(distinct s,t) from t1;
|
||||
|
||||
select count(distinct n1), count(distinct n2) from t1;
|
||||
|
||||
select count(distinct n2), n1 from t1 group by n1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user