Skip to content

Commit

Permalink
Follow-up to MDEV-10731 - fix the broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
elenst committed Feb 10, 2017
1 parent de9963b commit 66822f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mysql-test/r/update_innodb.result
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ INDEX idx_c_id (c_id))COLLATE = 'utf8_general_ci' ENGINE = InnoDB;
INSERT INTO t1 (b_id, c_id) VALUES (NULL, NULL);
INSERT INTO t2 (c_id) VALUES (NULL);
INSERT INTO t2 (c_id) VALUES (NULL);
SELECT * FROM T1;
SELECT * FROM t1;
a_id b_id c_id
1 NULL NULL
SELECT t2.b_id FROM t1,t2 WHERE t2.c_id = t1.c_id;
b_id
UPDATE t1 SET b_id = (SELECT t2.b_id FROM t2 t2 WHERE t2.c_id = t1.c_id);
SELECT * FROM T1;
SELECT * FROM t1;
a_id b_id c_id
1 NULL NULL
drop table t1,t2;
4 changes: 2 additions & 2 deletions mysql-test/t/update_innodb.test
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ INSERT INTO t1 (b_id, c_id) VALUES (NULL, NULL);
INSERT INTO t2 (c_id) VALUES (NULL);
INSERT INTO t2 (c_id) VALUES (NULL);

SELECT * FROM T1;
SELECT * FROM t1;
SELECT t2.b_id FROM t1,t2 WHERE t2.c_id = t1.c_id;
UPDATE t1 SET b_id = (SELECT t2.b_id FROM t2 t2 WHERE t2.c_id = t1.c_id);
SELECT * FROM T1;
SELECT * FROM t1;
drop table t1,t2;

0 comments on commit 66822f1

Please sign in to comment.