summaryrefslogtreecommitdiff
path: root/sql/item_row.h
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-01-20 20:55:47 +0400
committerunknown <hf@deer.(none)>2004-01-20 20:55:47 +0400
commit9768dc84c83eee93954a57f310ef3896861432b2 (patch)
tree38b07f5cc9271b9d99a946af98e1ce00eeaaa2e9 /sql/item_row.h
parentb44c819bb61664b4b69680c0209b8627b40fe2b2 (diff)
downloadmariadb-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.h10
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; }