Commit cab6e8a2 authored by unknown's avatar unknown

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

parent 379d2e1d
......@@ -4,9 +4,10 @@ pk1 INT NOT NULL PRIMARY KEY,
b INT NOT NULL,
c INT NOT NULL
) 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;
select * from t1 order by pk1;
pk1 b c
0 0 0
1 1 1
0 1 1
1 2 2
2 3 3
......@@ -17,6 +17,6 @@ CREATE TABLE t1 (
c INT NOT NULL
) 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;
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