Commit c0d6079d authored by Igor Babaev's avatar Igor Babaev

Corrected test case for bug 698882 to make it platform independent

parent e32efc01
...@@ -4916,65 +4916,65 @@ SELECT * from t1,t2,t3 ...@@ -4916,65 +4916,65 @@ SELECT * from t1,t2,t3
WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND
LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7; LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
a1 b1 a2 b2 a3 b3 a1 b1 a2 b2 a3 b3
2 xx 2 y 2 zz 1 xxx 1 y 1 z
2 xx 2 y 2 zzzz
2 xx 2 y 2 zzz
2 xx 2 yy 2 zz
2 xx 2 yy 2 zzz
1 xxx 1 yy 1 z
1 xxx 1 yy 1 zz
1 xxx 1 yy 1 zz
1 xxx 1 yy 1 z
1 xxx 1 y 1 z 1 xxx 1 y 1 z
1 xxx 1 y 1 zz 1 xxx 1 y 1 zz
1 xxx 1 y 1 zz 1 xxx 1 y 1 zz
1 xxx 1 y 1 zzz 1 xxx 1 y 1 zzz
1 xxx 1 y 1 zzz 1 xxx 1 y 1 zzz
1 xxx 1 y 1 z 1 xxx 1 yy 1 z
1 xxx 1 yy 1 z
1 xxx 1 yy 1 zz
1 xxx 1 yy 1 zz
1 xxx 1 yyy 1 z 1 xxx 1 yyy 1 z
1 xxx 1 yyy 1 z 1 xxx 1 yyy 1 z
SELECT * FROM t1,t2,t3
WHERE t2.a2=t1.a1 AND t3.a3=t1.a1 AND
LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
a1 b1 a2 b2 a3 b3
2 xx 2 y 2 zz 2 xx 2 y 2 zz
2 xx 2 y 2 zzzz
2 xx 2 y 2 zzz 2 xx 2 y 2 zzz
2 xx 2 y 2 zzzz
2 xx 2 yy 2 zz 2 xx 2 yy 2 zz
2 xx 2 yy 2 zzz 2 xx 2 yy 2 zzz
1 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 xxx 1 y 1 zzz
1 xxx 1 y 1 zzz 1 xxx 1 y 1 zzz
1 xxx 1 y 1 z 1 xxx 1 yy 1 z
1 xxx 1 yy 1 z
1 xxx 1 yy 1 zz
1 xxx 1 yy 1 zz
1 xxx 1 yyy 1 z 1 xxx 1 yyy 1 z
1 xxx 1 yyy 1 z 1 xxx 1 yyy 1 z
2 xx 2 y 2 zz
2 xx 2 y 2 zzz
2 xx 2 y 2 zzzz
2 xx 2 yy 2 zz
2 xx 2 yy 2 zzz
SET SESSION optimizer_switch=DEFAULT; SET SESSION optimizer_switch=DEFAULT;
DROP TABLE t1,t2,t3; DROP TABLE t1,t2,t3;
End of 5.1 tests End of 5.1 tests
...@@ -4923,64 +4923,64 @@ SELECT * from t1,t2,t3 ...@@ -4923,64 +4923,64 @@ SELECT * from t1,t2,t3
WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND
LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7; LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
a1 b1 a2 b2 a3 b3 a1 b1 a2 b2 a3 b3
1 xxx 1 yyy 1 z
1 xxx 1 y 1 z 1 xxx 1 y 1 z
1 xxx 1 yy 1 z 1 xxx 1 y 1 z
1 xxx 1 y 1 zz 1 xxx 1 y 1 zz
1 xxx 1 yy 1 zz
1 xxx 1 y 1 zz 1 xxx 1 y 1 zz
1 xxx 1 yy 1 zz
1 xxx 1 y 1 zzz 1 xxx 1 y 1 zzz
1 xxx 1 y 1 zzz 1 xxx 1 y 1 zzz
1 xxx 1 yyy 1 z
1 xxx 1 y 1 z
1 xxx 1 yy 1 z 1 xxx 1 yy 1 z
1 xxx 1 yy 1 z
1 xxx 1 yy 1 zz
1 xxx 1 yy 1 zz
1 xxx 1 yyy 1 z
1 xxx 1 yyy 1 z
2 xx 2 y 2 zz 2 xx 2 y 2 zz
2 xx 2 yy 2 zz
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1 xxx 1 yyy 1 z 1 xxx 1 yyy 1 z
SELECT * FROM t1,t2,t3
WHERE t2.a2=t1.a1 AND t3.a3=t2.a2 AND
LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
a1 b1 a2 b2 a3 b3
2 xx 2 y 2 zz 2 xx 2 y 2 zz
2 xx 2 y 2 zzzz
2 xx 2 y 2 zzz 2 xx 2 y 2 zzz
2 xx 2 y 2 zzzz
2 xx 2 yy 2 zz 2 xx 2 yy 2 zz
2 xx 2 yy 2 zzz 2 xx 2 yy 2 zzz
1 xxx 1 yy 1 z SELECT * FROM t1,t2,t3
1 xxx 1 yy 1 zz WHERE t2.a2=t1.a1 AND t3.a3=t2.a2 AND
1 xxx 1 yy 1 zz LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
1 xxx 1 yy 1 z a1 b1 a2 b2 a3 b3
1 xxx 1 y 1 z
1 xxx 1 y 1 z 1 xxx 1 y 1 z
1 xxx 1 y 1 zz 1 xxx 1 y 1 zz
1 xxx 1 y 1 zz 1 xxx 1 y 1 zz
1 xxx 1 y 1 zzz 1 xxx 1 y 1 zzz
1 xxx 1 y 1 zzz 1 xxx 1 y 1 zzz
1 xxx 1 y 1 z 1 xxx 1 yy 1 z
1 xxx 1 yy 1 z
1 xxx 1 yy 1 zz
1 xxx 1 yy 1 zz
1 xxx 1 yyy 1 z 1 xxx 1 yyy 1 z
1 xxx 1 yyy 1 z 1 xxx 1 yyy 1 z
2 xx 2 y 2 zz
2 xx 2 y 2 zzz
2 xx 2 y 2 zzzz
2 xx 2 yy 2 zz
2 xx 2 yy 2 zzz
SET SESSION optimizer_switch=DEFAULT; SET SESSION optimizer_switch=DEFAULT;
DROP TABLE t1,t2,t3; DROP TABLE t1,t2,t3;
End of 5.1 tests End of 5.1 tests
...@@ -4150,12 +4150,15 @@ EXPLAIN SELECT * from t1,t2,t3 WHERE t3.a3=t1.a1 AND t2.a2=t1.a1; ...@@ -4150,12 +4150,15 @@ EXPLAIN SELECT * from t1,t2,t3 WHERE t3.a3=t1.a1 AND t2.a2=t1.a1;
EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t1.a1; EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t1.a1;
EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t2.a2; EXPLAIN SELECT * FROM t1,t2,t3 WHERE t2.a2=t1.a1 AND t3.a3=t2.a2;
--sorted_result
SELECT * from t1,t2,t3 SELECT * from t1,t2,t3
WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND WHERE t3.a3=t1.a1 AND t2.a2=t1.a1 AND
LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7; LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
--sorted_result
SELECT * FROM t1,t2,t3 SELECT * FROM t1,t2,t3
WHERE t2.a2=t1.a1 AND t3.a3=t1.a1 AND WHERE t2.a2=t1.a1 AND t3.a3=t1.a1 AND
LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7; LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
--sorted_result
SELECT * FROM t1,t2,t3 SELECT * FROM t1,t2,t3
WHERE t2.a2=t1.a1 AND t3.a3=t2.a2 AND WHERE t2.a2=t1.a1 AND t3.a3=t2.a2 AND
LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7; LENGTH(CONCAT(CONCAT(t1.b1,t2.b2),t3.b3)) <= 7;
......
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