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
b5f814ab
Commit
b5f814ab
authored
Aug 15, 2006
by
gkodinov/kgeorge@macbook.gmz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #21302: Result not properly sorted when using an ORDER BY on a second table in a join
- undeterminstic tests fixed
parent
eabc7662
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
mysql-test/r/order_by.result
mysql-test/r/order_by.result
+5
-5
mysql-test/t/order_by.test
mysql-test/t/order_by.test
+1
-1
No files found.
mysql-test/r/order_by.result
View file @
b5f814ab
...
...
@@ -862,13 +862,13 @@ ORDER BY c;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
1 SIMPLE t2 const PRIMARY PRIMARY 4 const 1
SELECT t
1.b as a, t
2.b as c FROM
SELECT t2.b as c FROM
t1 LEFT JOIN t1 t2 ON (t1.a = t2.a AND t2.a = 2)
ORDER BY c;
a
c
1
NULL
3
NULL
2
2
c
NULL
NULL
2
explain SELECT t1.b as a, t2.b as c FROM
t1 JOIN t1 t2 ON (t1.a = t2.a AND t2.a = 2)
ORDER BY c;
...
...
mysql-test/t/order_by.test
View file @
b5f814ab
...
...
@@ -589,7 +589,7 @@ INSERT INTO t1 VALUES (1,1), (2,2), (3,3);
explain
SELECT
t1
.
b
as
a
,
t2
.
b
as
c
FROM
t1
LEFT
JOIN
t1
t2
ON
(
t1
.
a
=
t2
.
a
AND
t2
.
a
=
2
)
ORDER
BY
c
;
SELECT
t
1
.
b
as
a
,
t
2
.
b
as
c
FROM
SELECT
t2
.
b
as
c
FROM
t1
LEFT
JOIN
t1
t2
ON
(
t1
.
a
=
t2
.
a
AND
t2
.
a
=
2
)
ORDER
BY
c
;
...
...
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