summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authormonty@work.mysql.com <>2001-06-21 11:03:54 +0200
committermonty@work.mysql.com <>2001-06-21 11:03:54 +0200
commit7f681996486de1085b41221ed5248b12d5e7355c (patch)
treed2250b6064dd50f4270103879fdb86f3874d09c5 /sql/item_sum.h
parent6a8fce391429dea0e5239a4f84027808d8b3e100 (diff)
parent11e567229ac41541908f976b130ff792bd6754d6 (diff)
downloadmariadb-git-7f681996486de1085b41221ed5248b12d5e7355c.tar.gz
merge
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index 6a62614aff8..aea4d054c62 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -148,20 +148,21 @@ 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;
-
+
// calculated based on max_heap_table_size. If reached,
// walk the tree and dump it into MyISAM table
uint max_elements_in_tree;
+
+ // 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;
// 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;
-
- // 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;
+ bool always_null; // Set to 1 if the result is always NULL
int tree_to_myisam();
@@ -172,7 +173,7 @@ class Item_sum_count_distinct :public Item_sum_int
public:
Item_sum_count_distinct(List<Item> &list)
:Item_sum_int(list),table(0),used_table_cache(~(table_map) 0),
- tmp_table_param(0),use_tree(0)
+ tmp_table_param(0),always_null(0),use_tree(0)
{ quick_group=0; }
~Item_sum_count_distinct();
table_map used_tables() const { return used_table_cache; }