Commit 0648cc42 authored by mskold@mysql.com's avatar mskold@mysql.com

Added better test for Bug #6794 Wrong outcome of update operation of ndb table

parent 065184da
...@@ -4,9 +4,10 @@ pk1 INT NOT NULL PRIMARY KEY, ...@@ -4,9 +4,10 @@ pk1 INT NOT NULL PRIMARY KEY,
b INT NOT NULL, b INT NOT NULL,
c INT NOT NULL c INT NOT NULL
) ENGINE=ndbcluster; ) ENGINE=ndbcluster;
INSERT INTO t1 VALUES (0, 0, 0),(1,1,1); INSERT INTO t1 VALUES (0, 0, 1),(1,1,2),(2,2,3);
UPDATE t1 set b = c; UPDATE t1 set b = c;
select * from t1 order by pk1; select * from t1 order by pk1;
pk1 b c pk1 b c
0 0 0 0 1 1
1 1 1 1 2 2
2 3 3
...@@ -17,6 +17,6 @@ CREATE TABLE t1 ( ...@@ -17,6 +17,6 @@ CREATE TABLE t1 (
c INT NOT NULL c INT NOT NULL
) ENGINE=ndbcluster; ) ENGINE=ndbcluster;
INSERT INTO t1 VALUES (0, 0, 0),(1,1,1); INSERT INTO t1 VALUES (0, 0, 1),(1,1,2),(2,2,3);
UPDATE t1 set b = c; UPDATE t1 set b = c;
select * from t1 order by pk1; select * from t1 order by pk1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment