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
93d5cdf0
Commit
93d5cdf0
authored
Aug 04, 2016
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-9946: main.xtradb_mrr fails sporadically
Make the testcase stable by adding FORCE INDEX
parent
c0cb84bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/r/xtradb_mrr.result
mysql-test/r/xtradb_mrr.result
+2
-2
mysql-test/t/xtradb_mrr.test
mysql-test/t/xtradb_mrr.test
+2
-2
No files found.
mysql-test/r/xtradb_mrr.result
View file @
93d5cdf0
...
@@ -311,10 +311,10 @@ concat('c-', 1000 + C.a, '-c'),
...
@@ -311,10 +311,10 @@ concat('c-', 1000 + C.a, '-c'),
'filler'
'filler'
from t1 A, t1 B, t1 C;
from t1 A, t1 B, t1 C;
explain
explain
select count(length(a) + length(filler)) from t2 where a>='a-1000-a' and a <'a-1001-a';
select count(length(a) + length(filler)) from t2
force index (a)
where a>='a-1000-a' and a <'a-1001-a';
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 range a a 9 NULL 99 Using index condition; Rowid-ordered scan
1 SIMPLE t2 range a a 9 NULL 99 Using index condition; Rowid-ordered scan
select count(length(a) + length(filler)) from t2 where a>='a-1000-a' and a <'a-1001-a';
select count(length(a) + length(filler)) from t2
force index (a)
where a>='a-1000-a' and a <'a-1001-a';
count(length(a) + length(filler))
count(length(a) + length(filler))
100
100
drop table t2;
drop table t2;
...
...
mysql-test/t/xtradb_mrr.test
View file @
93d5cdf0
...
@@ -33,8 +33,8 @@ insert into t2 select
...
@@ -33,8 +33,8 @@ insert into t2 select
from
t1
A
,
t1
B
,
t1
C
;
from
t1
A
,
t1
B
,
t1
C
;
explain
explain
select
count
(
length
(
a
)
+
length
(
filler
))
from
t2
where
a
>=
'a-1000-a'
and
a
<
'a-1001-a'
;
select
count
(
length
(
a
)
+
length
(
filler
))
from
t2
force
index
(
a
)
where
a
>=
'a-1000-a'
and
a
<
'a-1001-a'
;
select
count
(
length
(
a
)
+
length
(
filler
))
from
t2
where
a
>=
'a-1000-a'
and
a
<
'a-1001-a'
;
select
count
(
length
(
a
)
+
length
(
filler
))
from
t2
force
index
(
a
)
where
a
>=
'a-1000-a'
and
a
<
'a-1001-a'
;
drop
table
t2
;
drop
table
t2
;
# Try a very big rowid
# Try a very big rowid
...
...
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