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
911749ad
Commit
911749ad
authored
Apr 03, 2013
by
Igor Babaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0-base->maria-10.0-mwl243.
parents
915a8ae4
ef5241ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/r/show_explain.result
mysql-test/r/show_explain.result
+3
-3
mysql-test/t/show_explain.test
mysql-test/t/show_explain.test
+1
-1
No files found.
mysql-test/r/show_explain.result
View file @
911749ad
...
...
@@ -442,9 +442,9 @@ WHERE pk= (SELECT MAX(pk) FROM t2 WHERE pk = 3)
);
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t2 ALL NULL NULL NULL NULL 20 Using where
2 SUBQUERY t2 const PRIMARY PRIMARY 4 const 1
Using where
2 SUBQUERY t2 const PRIMARY PRIMARY 4 const 1
3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
set @show_explain_probe_select_id=
2
;
set @show_explain_probe_select_id=
1
;
set debug_dbug='+d,show_explain_probe_do_select';
SELECT * FROM t2 WHERE a =
(SELECT MAX(a) FROM t2
...
...
@@ -453,7 +453,7 @@ WHERE pk= (SELECT MAX(pk) FROM t2 WHERE pk = 3)
show explain for $thr2;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t2 ALL NULL NULL NULL NULL 20 Using where
2 SUBQUERY t2 const PRIMARY PRIMARY 4 const 1
Using where
2 SUBQUERY t2 const PRIMARY PRIMARY 4 const 1
3 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
Warnings:
Note 1003 SELECT * FROM t2 WHERE a =
...
...
mysql-test/t/show_explain.test
View file @
911749ad
...
...
@@ -466,7 +466,7 @@ explain SELECT * FROM t2 WHERE a =
WHERE
pk
=
(
SELECT
MAX
(
pk
)
FROM
t2
WHERE
pk
=
3
)
);
set
@
show_explain_probe_select_id
=
2
;
set
@
show_explain_probe_select_id
=
1
;
set
debug_dbug
=
'+d,show_explain_probe_do_select'
;
send
SELECT
*
FROM
t2
WHERE
a
=
(
SELECT
MAX
(
a
)
FROM
t2
...
...
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