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
ed09ad05
Commit
ed09ad05
authored
Jan 27, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make testcase stable by adding --sorted_result for SHOW STATUS commands.
parent
74e69756
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
mysql-test/t/myisam_mrr.test
mysql-test/t/myisam_mrr.test
+5
-0
No files found.
mysql-test/t/myisam_mrr.test
View file @
ed09ad05
...
...
@@ -272,6 +272,7 @@ drop table t1;
--
echo
# Test of MRR handler counters
--
echo
#
flush
status
;
--
sorted_result
show
status
like
'Handler_mrr%'
;
create
table
t0
(
a
int
);
insert
into
t0
values
(
0
),(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
);
...
...
@@ -283,6 +284,7 @@ explain select sum(b) from t1 where a < 10;
--
echo
# This should show one MRR scan and no re-fills:
flush
status
;
select
sum
(
b
)
from
t1
where
a
<
10
;
--
sorted_result
show
status
like
'handler_mrr%'
;
set
@
mrr_buffer_size_save
=
@@
mrr_buffer_size
;
...
...
@@ -294,6 +296,7 @@ explain select sum(b) from t1 where a < 1600;
--
echo
# This should show one MRR scan and one extra rowid sort:
flush
status
;
select
sum
(
b
)
from
t1
where
a
<
1600
;
--
sorted_result
show
status
like
'handler_mrr%'
;
set
@@
mrr_buffer_size
=
@
mrr_buffer_size_save
;
...
...
@@ -305,6 +308,7 @@ set join_cache_level=6;
explain
select
sum
(
t1
.
b
)
from
t0
,
t1
where
t0
.
a
=
t1
.
a
;
flush
status
;
select
sum
(
t1
.
b
)
from
t0
,
t1
where
t0
.
a
=
t1
.
a
;
--
sorted_result
show
status
like
'handler_mrr%'
;
--
disable_warnings
...
...
@@ -313,6 +317,7 @@ set join_buffer_size=10;
explain
select
sum
(
t1
.
b
)
from
t0
,
t1
where
t0
.
a
=
t1
.
a
;
flush
status
;
select
sum
(
t1
.
b
)
from
t0
,
t1
where
t0
.
a
=
t1
.
a
;
--
sorted_result
--
replace_result
1
1
or2
2
1
or2
show
status
like
'handler_mrr%'
;
...
...
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