1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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()
This commit is contained in:
unknown
2004-01-20 20:55:47 +04:00
parent b44c819bb6
commit 9768dc84c8
6 changed files with 19 additions and 16 deletions

View File

@@ -1109,7 +1109,7 @@ end:
void free_items(Item *item)
{
for (; item ; item=item->next)
delete item;
item->delete_self();
}
/* This works because items are allocated with sql_alloc() */