diff options
author | unknown <bell@sanja.is.com.ua> | 2002-12-31 18:39:16 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-12-31 18:39:16 +0200 |
commit | cd248a8d636395a467f26550b55e0a184e86f0db (patch) | |
tree | 686761238f1e54eb1f7c25c8869e028f9c356ffd /sql/item_cmpfunc.h | |
parent | 53894481bfd2e7e1cf2a30706fd99ec67656dd5e (diff) | |
download | mariadb-git-cd248a8d636395a467f26550b55e0a184e86f0db.tar.gz |
postreviews fix (SCRUM related)
reordered Item_row class variables to be sorted by memory size
mysql-test/r/subselect.result:
fix result of subselect test
sql/item.cc:
postreviews fix
sql/item.h:
postreviews fix
sql/item_cmpfunc.h:
postreviews fix
sql/item_row.cc:
postreviews fix
sql/item_row.h:
reordered class variables to be sorted by memory size
postreviews fix
sql/item_strfunc.cc:
postreviews fix
sql/item_subselect.cc:
postreviews fix
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 2aca3e1fabb..44c788f381c 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -97,6 +97,13 @@ public: bool preallocate_row(); bool fix_fields(THD *, struct st_table_list *, Item **); bool is_null(); + /* + Item_in_optimizer item is special boolean function. On value request + (one of val, val_int or val_str methods) it evaluate left expression + of IN by storing it value in cache item (one of Item_cache* items), + then it test cache is it NULL. If left expression (cache) is NULL then + Item_in_optimizer return NULL, else it evaluate Item_in_subselect. + */ longlong val_int(); Item_cache **get_cache() { return &cache; } @@ -546,8 +553,10 @@ public: { if (comparators) for (uint i= 0; i < n; i++) + { if (comparators[i]) delete comparators[i]; + } } void store_value(Item *item); int cmp(Item *arg); |