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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e3203386
Commit
e3203386
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
28b86c18
Changes
4
Hide 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 @
e3203386
...
@@ -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
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 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=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
mysql-test/r/select_jcl6.result
View file @
e3203386
...
@@ -4923,64 +4923,64 @@ SELECT *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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
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 zzz
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;
...
...
mysql-test/r/select_pkeycache.result
View file @
e3203386
...
@@ -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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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
mysql-test/t/select.test
View file @
e3203386
...
@@ -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
;
...
...
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