Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c0d6079d
Commit
c0d6079d
authored
Jan 15, 2011
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected test case for bug 698882 to make it platform independent
parent
e32efc01
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
84 deletions
+87
-84
mysql-test/r/select.result
mysql-test/r/select.result
+30
-30
mysql-test/r/select_jcl6.result
mysql-test/r/select_jcl6.result
+24
-24
mysql-test/r/select_pkeycache.result
mysql-test/r/select_pkeycache.result
+30
-30
mysql-test/t/select.test
mysql-test/t/select.test
+3
-0
No files found.
mysql-test/r/select.result
View file @
c0d6079d
...
...
@@ -4916,65 +4916,65 @@ SELECT * from t1,t2,t3
WHERE t3.a3=t1.a1 AND t2.a2=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 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 zzz
1 xxx 1 y 1 zzz
1 xxx 1 y 1 z
1 xxx 1 yy 1 z
1 xxx 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 b2 a3 b3
2 xx 2 y 2 zz
2 xx 2 y 2 zzzz
2 xx 2 y 2 zzz
2 xx 2 y 2 zzzz
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
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
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 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
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;
DROP TABLE t1,t2,t3;
End of 5.1 tests
mysql-test/t/select.test
View file @
c0d6079d
...
...
@@ -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
=
t2
.
a2
;
--
sorted_result
SELECT
*
from
t1
,
t2
,
t3
WHERE
t3
.
a3
=
t1
.
a1
AND
t2
.
a2
=
t1
.
a1
AND
LENGTH
(
CONCAT
(
CONCAT
(
t1
.
b1
,
t2
.
b2
),
t3
.
b3
))
<=
7
;
--
sorted_result
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
;
--
sorted_result
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment