diff options
author | unknown <bell@sanja.is.com.ua> | 2004-11-08 01:54:23 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-11-08 01:54:23 +0200 |
commit | f1b9bf699eeec11d7d619683d74c01d6172a7e5f (patch) | |
tree | 7c704d55db2d47cde5d553a44a0bc112ad7a81cf /sql/table.cc | |
parent | 8b0ece5e88de965aeb2af410d193bf8c6d96dcde (diff) | |
download | mariadb-git-f1b9bf699eeec11d7d619683d74c01d6172a7e5f.tar.gz |
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
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc index 0116cf180c1..8c58c5296ad 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1736,6 +1736,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 SYNOPSIS |