From f1b9bf699eeec11d7d619683d74c01d6172a7e5f Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 8 Nov 2004 01:54:23 +0200 Subject: postreview fixes mysql-test/r/multi_update.result: test with multiupdate reopening tables mysql-test/t/multi_update.test: test with multiupdate reopening tables sql/item.cc: processor for cleunuping items in item tree sql/item.h: processor for cleunuping items in item tree sql/sql_update.cc: fixed case when lock reopened tables sql/table.cc: methos for cleunup view itema of table if they are present sql/table.h: methos for cleunup view itema of table if they are present --- sql/table.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'sql/table.cc') diff --git a/sql/table.cc b/sql/table.cc index 0116cf180c1..8c58c5296ad 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1735,6 +1735,24 @@ err: } +/* + cleunup items belonged to view fields translation table + + SYNOPSIS + st_table_list::cleanup_items() +*/ + +void st_table_list::cleanup_items() +{ + if (!field_translation) + return; + + Item **end= field_translation + view->select_lex.item_list.elements; + for (Item **item= field_translation; item < end; item++) + (*item)->walk(&Item::cleanup_processor, 0); +} + + /* check CHECK OPTION condition -- cgit v1.2.1