summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-05-29 18:53:37 -0600
committerunknown <sasha@mysql.sashanet.com>2001-05-29 18:53:37 -0600
commit7a8520640a93758684dfa2cd859ba591f8923ee1 (patch)
tree42f41e1efa80a528b784080d3adbf953e1712214 /sql/item_sum.h
parent020160f83f62d6171c57a4021e21e68049c2a4e8 (diff)
downloadmariadb-git-7a8520640a93758684dfa2cd859ba591f8923ee1.tar.gz
count(distinct) cleanup
mysql-test/t/count_distinct2.test: make default NULL in tree->MyISAM test to make sure restore_record() does not give a bad surprise sql/item_sum.cc: cleanup according to Monty's suggestions sql/item_sum.h: cleanup according to Monty's suggestions
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index 1aa7f78d786..6a62614aff8 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -148,19 +148,20 @@ class Item_sum_count_distinct :public Item_sum_int
bool fix_fields(THD *thd,TABLE_LIST *tables);
TMP_TABLE_PARAM *tmp_table_param;
TREE tree;
- uint max_elements_in_tree;
+
// calculated based on max_heap_table_size. If reached,
// walk the tree and dump it into MyISAM table
+ uint max_elements_in_tree;
- bool use_tree;
// If there are no blobs, we can use a tree, which
// is faster than heap table. In that case, we still use the table
// to help get things set up, but we insert nothing in it
+ bool use_tree;
- int rec_offset;
// the first few bytes of record ( at least one)
// are just markers for deleted and NULLs. We want to skip them since
// they will just bloat the tree without providing any valuable info
+ int rec_offset;
int tree_to_myisam();