From cd248a8d636395a467f26550b55e0a184e86f0db Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 31 Dec 2002 18:39:16 +0200 Subject: 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 --- sql/item_cmpfunc.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sql/item_cmpfunc.h') 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); -- cgit v1.2.1