summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_lock.test
diff options
context:
space:
mode:
authorunknown <mskold/marty@linux.site>2006-08-09 15:02:30 +0200
committerunknown <mskold/marty@linux.site>2006-08-09 15:02:30 +0200
commit893ed9fca6b973f7cfa44032d30895de6725683d (patch)
tree30ce5b3f6f84bf93db801ca5f32ba6d462c58627 /mysql-test/t/ndb_lock.test
parente7fbb26c2af0d92bfcdd30dace54c49de88544a5 (diff)
parentd81ace8775bfbbd6ee752bd618f205456e6964af (diff)
downloadmariadb-git-893ed9fca6b973f7cfa44032d30895de6725683d.tar.gz
Merge mysql.com:/home/marty/MySQL/mysql-5.0
into mysql.com:/home/marty/MySQL/mysql-5.1-ndb mysql-test/r/ndb_read_multi_range.result: Auto merged mysql-test/t/ndb_lock.test: Auto merged mysql-test/t/ndb_read_multi_range.test: Auto merged storage/ndb/include/ndbapi/NdbTransaction.hpp: Auto merged mysql-test/r/ndb_lock.result: Merge (using local) sql/ha_ndbcluster.cc: Merge fix for bug #18184 SELECT ... FOR UPDATE does not work.. sql/ha_ndbcluster.h: Merge fix for bug #18184 SELECT ... FOR UPDATE does not work..
Diffstat (limited to 'mysql-test/t/ndb_lock.test')
-rw-r--r--mysql-test/t/ndb_lock.test15
1 files changed, 13 insertions, 2 deletions
diff --git a/mysql-test/t/ndb_lock.test b/mysql-test/t/ndb_lock.test
index b022ea550cc..474155e06f4 100644
--- a/mysql-test/t/ndb_lock.test
+++ b/mysql-test/t/ndb_lock.test
@@ -73,7 +73,7 @@ drop table t1;
create table t1 (x integer not null primary key, y varchar(32), z integer, key(z)) engine = ndb;
-insert into t1 values (1,'one',1), (2,'two',2),(3,"three",3);
+insert into t1 values (1,'one',1);
# PK access
connection con1;
@@ -82,12 +82,23 @@ select * from t1 where x = 1 for update;
connection con2;
begin;
-select * from t1 where x = 2 for update;
--error 1205
select * from t1 where x = 1 for update;
rollback;
connection con1;
+rollback;
+insert into t1 values (2,'two',2),(3,"three",3);
+begin;
+select * from t1 where x = 1 for update;
+
+connection con2;
+--error 1205
+select * from t1 where x = 1 for update;
+select * from t1 where x = 2 for update;
+rollback;
+
+connection con1;
commit;
# table scan