diff options
author | unknown <hf@deer.(none)> | 2004-01-20 20:55:47 +0400 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2004-01-20 20:55:47 +0400 |
commit | 9768dc84c83eee93954a57f310ef3896861432b2 (patch) | |
tree | 38b07f5cc9271b9d99a946af98e1ce00eeaaa2e9 /sql/item_row.h | |
parent | b44c819bb61664b4b69680c0209b8627b40fe2b2 (diff) | |
download | mariadb-git-9768dc84c83eee93954a57f310ef3896861432b2.tar.gz |
Pack of changes about 'cleanup()'-s
Some errorneous code trimmed
sql/item.cc:
initialization of the Item_type_holder::orig_item added
sql/item.h:
No use to call cleanup() in ~Item
this only calls Item::cleanup()
We should use item->delete_self() instead of 'delete item' now
Code added to restore Item_type_holder::item_type value
sql/item_row.h:
this cleanup is wrong
sql/item_sum.cc:
initialization added
sql/item_sum.h:
Item_xxx& -> Item_xxx*
sql/sql_parse.cc:
delete item -> item->delete_self()
Diffstat (limited to 'sql/item_row.h')
-rw-r--r-- | sql/item_row.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sql/item_row.h b/sql/item_row.h index 1b792f981fd..f87b4f66e80 100644 --- a/sql/item_row.h +++ b/sql/item_row.h @@ -34,16 +34,6 @@ public: with_null(0) {} - void cleanup() - { - if (array_holder && items) - { - sql_element_free(items); - items= 0; - array_holder= 0; - } - } - enum Type type() const { return ROW_ITEM; }; void illegal_method_call(const char *); bool is_null() { return null_value; } |