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
6cd1ec3b
Commit
6cd1ec3b
authored
Feb 28, 2011
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the test case for LP bug 725050 into a new test file.
parent
0f0360e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
36 deletions
+37
-36
mysql-test/r/join_cache.result
mysql-test/r/join_cache.result
+0
-18
mysql-test/r/select_debug.result
mysql-test/r/select_debug.result
+18
-0
mysql-test/t/join_cache.test
mysql-test/t/join_cache.test
+0
-18
mysql-test/t/select_debug.test
mysql-test/t/select_debug.test
+19
-0
No files found.
mysql-test/r/join_cache.result
View file @
6cd1ec3b
...
...
@@ -4967,21 +4967,3 @@ SET SESSION join_cache_level = DEFAULT;
SET SESSION join_buffer_size = DEFAULT;
DROP TABLE t1,t2;
set @@optimizer_switch=@save_optimizer_switch;
#
# Bug #725050: print keyuse info when hash join is used
#
create table t1 (a int, b int);
insert into t1 values (2,2), (1,1);
create table t2 (a int);
insert into t2 values (2), (3);
set session join_cache_level=3;
set @@debug = 'd:t:O,/tmp/trace.out';
explain select t1.b from t1,t2 where t1.b=t2.a;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
1 SIMPLE t2 hash_ALL NULL #hash#$hj 5 test.t1.b 2 Using where; Using join buffer (flat, BNLH join)
select t1.b from t1,t2 where t1.b=t2.a;
b
2
set session join_cache_level=default;
drop table t1,t2;
mysql-test/r/select_debug.result
0 → 100644
View file @
6cd1ec3b
#
# Bug #725050: print keyuse info when hash join is used
#
create table t1 (a int, b int);
insert into t1 values (2,2), (1,1);
create table t2 (a int);
insert into t2 values (2), (3);
set session join_cache_level=3;
set @@debug = 'd:t:O,/tmp/trace.out';
explain select t1.b from t1,t2 where t1.b=t2.a;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 Using where
1 SIMPLE t2 hash_ALL NULL #hash#$hj 5 test.t1.b 2 Using where; Using join buffer (flat, BNLH join)
select t1.b from t1,t2 where t1.b=t2.a;
b
2
set session join_cache_level=default;
drop table t1,t2;
mysql-test/t/join_cache.test
View file @
6cd1ec3b
...
...
@@ -3100,21 +3100,3 @@ DROP TABLE t1,t2;
# this must be the last command in the file
set
@@
optimizer_switch
=@
save_optimizer_switch
;
--
echo
#
--
echo
# Bug #725050: print keyuse info when hash join is used
--
echo
#
create
table
t1
(
a
int
,
b
int
);
insert
into
t1
values
(
2
,
2
),
(
1
,
1
);
create
table
t2
(
a
int
);
insert
into
t2
values
(
2
),
(
3
);
set
session
join_cache_level
=
3
;
set
@@
debug
=
'd:t:O,/tmp/trace.out'
;
explain
select
t1
.
b
from
t1
,
t2
where
t1
.
b
=
t2
.
a
;
select
t1
.
b
from
t1
,
t2
where
t1
.
b
=
t2
.
a
;
set
session
join_cache_level
=
default
;
drop
table
t1
,
t2
;
mysql-test/t/select_debug.test
0 → 100644
View file @
6cd1ec3b
--
source
include
/
have_debug
.
inc
--
echo
#
--
echo
# Bug #725050: print keyuse info when hash join is used
--
echo
#
create
table
t1
(
a
int
,
b
int
);
insert
into
t1
values
(
2
,
2
),
(
1
,
1
);
create
table
t2
(
a
int
);
insert
into
t2
values
(
2
),
(
3
);
set
session
join_cache_level
=
3
;
set
@@
debug
=
'd:t:O,/tmp/trace.out'
;
explain
select
t1
.
b
from
t1
,
t2
where
t1
.
b
=
t2
.
a
;
select
t1
.
b
from
t1
,
t2
where
t1
.
b
=
t2
.
a
;
set
session
join_cache_level
=
default
;
drop
table
t1
,
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