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 /mysql-test/r/multi_update.result | |
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 'mysql-test/r/multi_update.result')
-rw-r--r-- | mysql-test/r/multi_update.result | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/r/multi_update.result b/mysql-test/r/multi_update.result index 5ef0ff8e82f..b853b05f153 100644 --- a/mysql-test/r/multi_update.result +++ b/mysql-test/r/multi_update.result @@ -490,3 +490,24 @@ insert into t2 select * from t1; delete t1,t2 from t2,t1 where t1.a<'B' and t2.b=t1.b; set @@storage_engine=@ttype_save; drop table t1,t2; +create table t1 (a int, b int); +insert into t1 values (1, 2), (2, 3), (3, 4); +create table t2 (a int); +insert into t2 values (10), (20), (30); +create view v1 as select a as b, a/10 as a from t2; +lock table t1 write; + alter table t1 add column c int default 100 after a; + update t1, v1 set t1.b=t1.a+t1.b+v1.b where t1.a=v1.a; +unlock tables; +select * from t1; +a c b +1 100 13 +2 100 25 +3 100 37 +select * from t2; +a +10 +20 +30 +drop view v1; +drop table t1, t2; |