mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
three bug fixes and major code cleanup
This commit is contained in:
@ -230,3 +230,7 @@ id_master id text1 text2
|
||||
1 3 NULL bar3
|
||||
1 4 foo4 bar4
|
||||
drop table if exists t1,t2;
|
||||
(SELECT 1,3) UNION (SELECT 2,1) ORDER BY (SELECT 2);
|
||||
1 3
|
||||
1 3
|
||||
2 1
|
||||
|
@ -124,3 +124,4 @@ INSERT INTO t2 (id, id_master, text1, text2) VALUES("4", "1",
|
||||
SELECT 1 AS id_master, 1 AS id, NULL AS text1, 'ABCDE' AS text2 UNION SELECT id_master, t2.id, text1, text2 FROM t1 LEFT JOIN t2 ON t1.id = t2.id_master;
|
||||
SELECT 1 AS id_master, 1 AS id, 'ABCDE' AS text1, 'ABCDE' AS text2 UNION SELECT id_master, t2.id, text1, text2 FROM t1 LEFT JOIN t2 ON t1.id = t2.id_master;
|
||||
drop table if exists t1,t2;
|
||||
(SELECT 1,3) UNION (SELECT 2,1) ORDER BY (SELECT 2);
|
||||
|
Reference in New Issue
Block a user