summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_alter_table.test
diff options
context:
space:
mode:
authorunknown <jonas@eel.(none)>2005-08-18 14:28:13 +0200
committerunknown <jonas@eel.(none)>2005-08-18 14:28:13 +0200
commit4e46284373558dd35709ddff79725c93b5afb803 (patch)
treef4d0e3773aca6c45cc62a832612a37f5abe8dab8 /mysql-test/t/ndb_alter_table.test
parentf90f654117e174e47fe220e8911c04fc9816e6da (diff)
parentebb2e53a37463f4d40a4710a40746f9c3105dc89 (diff)
downloadmariadb-git-4e46284373558dd35709ddff79725c93b5afb803.tar.gz
Merge eel.(none):/home/jonas/src/mysql-5.0
into eel.(none):/home/jonas/src/mysql-5.0-push mysql-test/t/ndb_config.test: Auto merged sql/ha_ndbcluster.cc: Auto merged mysql-test/t/ndb_alter_table.test: merge
Diffstat (limited to 'mysql-test/t/ndb_alter_table.test')
-rw-r--r--mysql-test/t/ndb_alter_table.test26
1 files changed, 25 insertions, 1 deletions
diff --git a/mysql-test/t/ndb_alter_table.test b/mysql-test/t/ndb_alter_table.test
index bfc278d709b..0f7b0bb7edc 100644
--- a/mysql-test/t/ndb_alter_table.test
+++ b/mysql-test/t/ndb_alter_table.test
@@ -151,7 +151,6 @@ select * from t1 where b = 'two';
connection server1;
alter table t1 drop index c;
connection server2;
---error 1412
select * from t1 where b = 'two';
select * from t1 where b = 'two';
connection server1;
@@ -180,4 +179,29 @@ drop table t1;
#select count(*) from t2;
#drop table t2;
+connection server1;
+create table t3 (a int primary key) engine=ndbcluster;
+
+connection server2;
+begin;
+insert into t3 values (1);
+
+connection server1;
+alter table t3 rename t4;
+
+connection server2;
+# This should work as transaction is ongoing...
+delete from t3;
+insert into t3 values (1);
+commit;
+
+# This should fail as its a new transaction
+--error 1015
+select * from t3;
+select * from t4;
+drop table t4;
+show tables;
+connection server1;
+
# End of 4.1 tests
+