Loading mysql-test/r/ndb_update.result +25 −5 Original line number Diff line number Diff line Loading @@ -2,12 +2,32 @@ DROP TABLE IF EXISTS t1; CREATE TABLE t1 ( pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL c INT NOT NULL UNIQUE ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0, 0, 1),(1,1,2),(2,2,3); INSERT INTO t1 VALUES (0, 1, 0),(1,2,1),(2,3,2); UPDATE t1 set b = c; select * from t1 order by pk1; pk1 b c 0 1 1 1 2 2 2 3 3 0 0 0 1 1 1 2 2 2 UPDATE t1 set pk1 = 4 where pk1 = 1; select * from t1 order by pk1; pk1 b c 0 0 0 2 2 2 4 1 1 UPDATE t1 set pk1 = 1, c = 2 where pk1 = 4; ERROR 23000: Duplicate entry '1' for key 1 select * from t1 order by pk1; pk1 b c 0 0 0 2 2 2 4 1 1 UPDATE t1 set pk1 = pk1 + 10; select * from t1 order by pk1; pk1 b c 10 0 0 12 2 2 14 1 1 DROP TABLE IF EXISTS t1; mysql-test/t/ndb_alter_table.test +1 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc -- source include/have_multi_ndb.inc -- source include/not_embedded.inc --disable_warnings DROP TABLE IF EXISTS t1; Loading mysql-test/t/ndb_autodiscover.test +1 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc -- source include/not_embedded.inc --disable_warnings drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10; Loading mysql-test/t/ndb_autodiscover2.test +1 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc -- source include/not_embedded.inc # # Simple test to show use of discover when the server has been restarted Loading mysql-test/t/ndb_basic.test +1 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc -- source include/not_embedded.inc --disable_warnings DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7; Loading Loading
mysql-test/r/ndb_update.result +25 −5 Original line number Diff line number Diff line Loading @@ -2,12 +2,32 @@ DROP TABLE IF EXISTS t1; CREATE TABLE t1 ( pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL c INT NOT NULL UNIQUE ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0, 0, 1),(1,1,2),(2,2,3); INSERT INTO t1 VALUES (0, 1, 0),(1,2,1),(2,3,2); UPDATE t1 set b = c; select * from t1 order by pk1; pk1 b c 0 1 1 1 2 2 2 3 3 0 0 0 1 1 1 2 2 2 UPDATE t1 set pk1 = 4 where pk1 = 1; select * from t1 order by pk1; pk1 b c 0 0 0 2 2 2 4 1 1 UPDATE t1 set pk1 = 1, c = 2 where pk1 = 4; ERROR 23000: Duplicate entry '1' for key 1 select * from t1 order by pk1; pk1 b c 0 0 0 2 2 2 4 1 1 UPDATE t1 set pk1 = pk1 + 10; select * from t1 order by pk1; pk1 b c 10 0 0 12 2 2 14 1 1 DROP TABLE IF EXISTS t1;
mysql-test/t/ndb_alter_table.test +1 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc -- source include/have_multi_ndb.inc -- source include/not_embedded.inc --disable_warnings DROP TABLE IF EXISTS t1; Loading
mysql-test/t/ndb_autodiscover.test +1 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc -- source include/not_embedded.inc --disable_warnings drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10; Loading
mysql-test/t/ndb_autodiscover2.test +1 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc -- source include/not_embedded.inc # # Simple test to show use of discover when the server has been restarted Loading
mysql-test/t/ndb_basic.test +1 −0 Original line number Diff line number Diff line -- source include/have_ndb.inc -- source include/not_embedded.inc --disable_warnings DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7; Loading