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
a14f61ef
Commit
a14f61ef
authored
Sep 05, 2016
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7142: main.index_merge_innodb fails sporadically in buildbot
Attempt to stabilize the testcase.
parent
f81f985f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
mysql-test/include/index_merge2.inc
mysql-test/include/index_merge2.inc
+1
-0
mysql-test/r/index_merge_innodb.result
mysql-test/r/index_merge_innodb.result
+3
-0
mysql-test/r/index_merge_myisam.result
mysql-test/r/index_merge_myisam.result
+3
-0
No files found.
mysql-test/include/index_merge2.inc
View file @
a14f61ef
...
@@ -341,6 +341,7 @@ while ($1)
...
@@ -341,6 +341,7 @@ while ($1)
alter
table
t1
add
index
i2
(
key2
);
alter
table
t1
add
index
i2
(
key2
);
alter
table
t1
add
index
i3
(
key3
);
alter
table
t1
add
index
i3
(
key3
);
update
t1
set
key2
=
key1
,
key3
=
key1
;
update
t1
set
key2
=
key1
,
key3
=
key1
;
analyze
table
t1
;
# to test the bug, the following must use "sort_union":
# to test the bug, the following must use "sort_union":
--
replace_column
9
REF
--
replace_column
9
REF
...
...
mysql-test/r/index_merge_innodb.result
View file @
a14f61ef
...
@@ -311,6 +311,9 @@ set @d=@d*2;
...
@@ -311,6 +311,9 @@ set @d=@d*2;
alter table t1 add index i2(key2);
alter table t1 add index i2(key2);
alter table t1 add index i3(key3);
alter table t1 add index i3(key3);
update t1 set key2=key1,key3=key1;
update t1 set key2=key1,key3=key1;
analyze table t1;
Table Op Msg_type Msg_text
test.t1 analyze status OK
explain select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
explain select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
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 t1 index_merge i2,i3 i3,i2 4,4 NULL REF Using sort_union(i3,i2); Using where
1 SIMPLE t1 index_merge i2,i3 i3,i2 4,4 NULL REF Using sort_union(i3,i2); Using where
...
...
mysql-test/r/index_merge_myisam.result
View file @
a14f61ef
...
@@ -1146,6 +1146,9 @@ set @d=@d*2;
...
@@ -1146,6 +1146,9 @@ set @d=@d*2;
alter table t1 add index i2(key2);
alter table t1 add index i2(key2);
alter table t1 add index i3(key3);
alter table t1 add index i3(key3);
update t1 set key2=key1,key3=key1;
update t1 set key2=key1,key3=key1;
analyze table t1;
Table Op Msg_type Msg_text
test.t1 analyze status OK
explain select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
explain select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
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 t1 index_merge i2,i3 i3,i2 4,4 NULL REF Using sort_union(i3,i2); Using where
1 SIMPLE t1 index_merge i2,i3 i3,i2 4,4 NULL REF Using sort_union(i3,i2); Using where
...
...
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