diff options
author | unknown <monty@mysql.com> | 2003-12-13 04:04:38 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2003-12-13 04:04:38 +0200 |
commit | db37aa2297d30c339b1d6128f26fe437ae89a605 (patch) | |
tree | cf05e1e4ec36f367ed2af0f1637a851099cc54ba /mysql-test/t/multi_update.test | |
parent | cbc18a76c83365240b0bb684b8b0990ca6d4797d (diff) | |
parent | 759ea82ee1335543da1d484d76468b6686057e90 (diff) | |
download | mariadb-git-db37aa2297d30c339b1d6128f26fe437ae89a605.tar.gz |
Merge
sql/sql_select.cc:
Auto merged
sql/sql_update.cc:
Auto merged
mysql-test/r/multi_update.result:
SCCS merged
mysql-test/t/multi_update.test:
SCCS merged
Diffstat (limited to 'mysql-test/t/multi_update.test')
-rw-r--r-- | mysql-test/t/multi_update.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/multi_update.test b/mysql-test/t/multi_update.test index 61a284a7aec..56dcf9a03a9 100644 --- a/mysql-test/t/multi_update.test +++ b/mysql-test/t/multi_update.test @@ -268,6 +268,16 @@ update t1 left join t2 on t1.a=t2.a set t1.b=2, t2.b=2 where t1.b=1 and t2.b=1 select t1.a, t1.b,t2.a, t2.b from t1 left join t2 on t1.a=t2.a where t1.b=1 and t2.b=1 or t2.a is NULL; drop table t1,t2; +# +# Test reuse of same table +# + +create table t1 (a int not null auto_increment primary key, b int not null); +insert into t1 (b) values (1),(2),(3),(4); +update t1, t1 as t2 set t1.b=t2.b+1 where t1.a=t2.a; +select * from t1; +drop table t1; + # Test multi-update and multi-delete with impossible where drop table if exists t1, t2; |