Commit 66822f16 authored by Elena Stepanova's avatar Elena Stepanova

Follow-up to MDEV-10731 - fix the broken test

parent de9963b7
...@@ -45,13 +45,13 @@ INDEX idx_c_id (c_id))COLLATE = 'utf8_general_ci' ENGINE = InnoDB; ...@@ -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 t1 (b_id, c_id) VALUES (NULL, NULL);
INSERT INTO t2 (c_id) VALUES (NULL); INSERT INTO t2 (c_id) VALUES (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 a_id b_id c_id
1 NULL NULL 1 NULL NULL
SELECT t2.b_id FROM t1,t2 WHERE t2.c_id = t1.c_id; SELECT t2.b_id FROM t1,t2 WHERE t2.c_id = t1.c_id;
b_id b_id
UPDATE t1 SET b_id = (SELECT t2.b_id FROM t2 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;
a_id b_id c_id a_id b_id c_id
1 NULL NULL 1 NULL NULL
drop table t1,t2; drop table t1,t2;
...@@ -58,8 +58,8 @@ INSERT INTO t1 (b_id, c_id) VALUES (NULL, NULL); ...@@ -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);
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; 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); 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; drop table t1,t2;
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