diff options
author | unknown <acurtis@xiphis.org> | 2005-05-24 15:52:48 +0100 |
---|---|---|
committer | unknown <acurtis@xiphis.org> | 2005-05-24 15:52:48 +0100 |
commit | 879d932ba9b2757b21826b323cca9ae6f70e8b64 (patch) | |
tree | 2e12d887aeb0739e493ddae71187746c1ba9ab09 /mysql-test/r/lock.result | |
parent | 0e4afc241205719296c39b0b1b0694d2baaccf21 (diff) | |
parent | 3a23b67566681a5368fd7f7a0c1004863819dc0e (diff) | |
download | mariadb-git-879d932ba9b2757b21826b323cca9ae6f70e8b64.tar.gz |
Merge
mysql-test/r/lock.result:
Auto merged
mysql-test/r/rpl_log.result:
Auto merged
mysql-test/t/lock.test:
Auto merged
mysql-test/r/rpl_rotate_logs.result:
SCCS merged
sql/sql_parse.cc:
SCCS merged
sql/sql_repl.cc:
SCCS merged
Diffstat (limited to 'mysql-test/r/lock.result')
-rw-r--r-- | mysql-test/r/lock.result | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/lock.result b/mysql-test/r/lock.result index 16c92fa201f..a1efb1a8e69 100644 --- a/mysql-test/r/lock.result +++ b/mysql-test/r/lock.result @@ -47,3 +47,13 @@ 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 ( 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; +delete from t1 using t1,t2 where t1.a=t2.a; +delete t1 from t1,t2 where t1.a=t2.a; +delete from t2 using t1,t2 where t1.a=t2.a; +ERROR HY000: Table 't2' was locked with a READ lock and can't be updated +delete t2 from t1,t2 where t1.a=t2.a; +ERROR HY000: Table 't2' was locked with a READ lock and can't be updated +drop table t1,t2; |