Commit 4769b003 authored by Sergey Petrunya's avatar Sergey Petrunya

Make test result stable (had different result orderings, on some platforms, both

of which satisfied the ORDER BY clause).
parent 4f7e5190
...@@ -416,10 +416,10 @@ n m o n m o ...@@ -416,10 +416,10 @@ n m o n m o
select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and
t1.m = t2.m where t1.n = 1 order by t1.o; t1.m = t2.m where t1.n = 1 order by t1.o;
n m o n m o n m o n m o
1 2 11 1 2 3
1 2 7 1 2 3 1 2 7 1 2 3
1 2 9 1 2 3 1 2 9 1 2 3
1 3 9 NULL NULL NULL 1 3 9 NULL NULL NULL
1 2 11 1 2 3
drop table t1,t2; drop table t1,t2;
CREATE TABLE t1 (id1 INT NOT NULL PRIMARY KEY, dat1 CHAR(1), id2 INT); CREATE TABLE t1 (id1 INT NOT NULL PRIMARY KEY, dat1 CHAR(1), id2 INT);
INSERT INTO t1 VALUES (1,'a',1); INSERT INTO t1 VALUES (1,'a',1);
......
...@@ -420,10 +420,10 @@ n m o n m o ...@@ -420,10 +420,10 @@ n m o n m o
select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and
t1.m = t2.m where t1.n = 1 order by t1.o; t1.m = t2.m where t1.n = 1 order by t1.o;
n m o n m o n m o n m o
1 2 11 1 2 3
1 2 7 1 2 3 1 2 7 1 2 3
1 2 9 1 2 3 1 2 9 1 2 3
1 3 9 NULL NULL NULL 1 3 9 NULL NULL NULL
1 2 11 1 2 3
drop table t1,t2; drop table t1,t2;
CREATE TABLE t1 (id1 INT NOT NULL PRIMARY KEY, dat1 CHAR(1), id2 INT); CREATE TABLE t1 (id1 INT NOT NULL PRIMARY KEY, dat1 CHAR(1), id2 INT);
INSERT INTO t1 VALUES (1,'a',1); INSERT INTO t1 VALUES (1,'a',1);
......
...@@ -308,6 +308,7 @@ insert into t1 values (1, 2, 11), (1, 2, 7), (2, 2, 8), (1,2,9),(1,3,9); ...@@ -308,6 +308,7 @@ insert into t1 values (1, 2, 11), (1, 2, 7), (2, 2, 8), (1,2,9),(1,3,9);
insert into t2 values (1, 2, 3),(2, 2, 8), (4,3,9),(3,2,10); insert into t2 values (1, 2, 3),(2, 2, 8), (4,3,9),(3,2,10);
select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and
t1.m = t2.m where t1.n = 1; t1.m = t2.m where t1.n = 1;
--sorted_result
select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and select t1.*, t2.* from t1 left join t2 on t1.n = t2.n and
t1.m = t2.m where t1.n = 1 order by t1.o; t1.m = t2.m where t1.n = 1 order by t1.o;
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