diff options
author | unknown <ingo@mysql.com> | 2006-02-06 15:15:44 +0100 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2006-02-06 15:15:44 +0100 |
commit | 0e88bff6cb73f1e95ad6683d45626fadef41f35d (patch) | |
tree | 86ac1cb5e291d1c456e125e1954b4cdb41d5bb49 /mysql-test | |
parent | b948741b6beebb024ae4df23107f9e1f016cb14f (diff) | |
parent | cfbb86034d284c8c24a63725735f17cf00304b3b (diff) | |
download | mariadb-git-0e88bff6cb73f1e95ad6683d45626fadef41f35d.tar.gz |
Merge mysql.com:/home/mydev/mysql-4.1-bug5390
into mysql.com:/home/mydev/mysql-5.0-bug5390
mysql-test/r/lock.result:
Auto merged
mysql-test/t/lock.test:
Auto merged
sql/lock.cc:
BUG#5390 - problems with merge tables
Manual merge
sql/table.h:
BUG#5390 - problems with merge tables
Manual merge
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/lock.result | 11 | ||||
-rw-r--r-- | mysql-test/t/lock.test | 18 |
2 files changed, 29 insertions, 0 deletions
diff --git a/mysql-test/r/lock.result b/mysql-test/r/lock.result index a1efb1a8e69..079b0253ff6 100644 --- a/mysql-test/r/lock.result +++ b/mysql-test/r/lock.result @@ -47,6 +47,17 @@ unlock tables; lock tables t1 write, t1 as t1_alias read; insert into t1 select index1,nr from t1 as t1_alias; drop table t1,t2; +create table t1 (c1 int); +create table t2 (c1 int); +create table t3 (c1 int); +lock tables t1 write, t2 write, t3 write; +drop table t2, t3, t1; +create table t1 (c1 int); +create table t2 (c1 int); +create table t3 (c1 int); +lock tables t1 write, t2 write, t3 write, t1 as t4 read; +alter table t2 add column c2 int; +drop table t1, t2, t3; create table t1 ( a int(11) not null auto_increment, primary key(a)); create table t2 ( a int(11) not null auto_increment, primary key(a)); lock tables t1 write, t2 read; diff --git a/mysql-test/t/lock.test b/mysql-test/t/lock.test index 4815c1a30b7..8300219b3d4 100644 --- a/mysql-test/t/lock.test +++ b/mysql-test/t/lock.test @@ -61,6 +61,24 @@ insert into t1 select index1,nr from t1 as t1_alias; drop table t1,t2; # +# BUG#5390 - problems with merge tables +# Supplement test for the after-fix optimization +# Check that a dropped table is correctly removed from a lock. +create table t1 (c1 int); +create table t2 (c1 int); +create table t3 (c1 int); +lock tables t1 write, t2 write, t3 write; +# This removes one table after the other from the lock. +drop table t2, t3, t1; +# +# Check that a lock merge works. +create table t1 (c1 int); +create table t2 (c1 int); +create table t3 (c1 int); +lock tables t1 write, t2 write, t3 write, t1 as t4 read; +alter table t2 add column c2 int; +drop table t1, t2, t3; + # Bug7241 - Invalid response when DELETE .. USING and LOCK TABLES used. # create table t1 ( a int(11) not null auto_increment, primary key(a)); |