1
0
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:
unknown
2001-05-12 19:50:51 -06:00
parent 6498429624
commit b7b7eb9c05
7 changed files with 71 additions and 6 deletions

View File

@ -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

View File

@ -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;