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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6f94b5c7
Commit
6f94b5c7
authored
Sep 10, 2012
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed random test failure
mysql-test/include/index_merge2.inc: InnoDB did report 9 or 7 rows in explain
parent
1539f912
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
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
+1
-1
mysql-test/r/index_merge_myisam.result
mysql-test/r/index_merge_myisam.result
+1
-1
No files found.
mysql-test/include/index_merge2.inc
View file @
6f94b5c7
...
...
@@ -343,6 +343,7 @@ alter table t1 add index i3(key3);
update
t1
set
key2
=
key1
,
key3
=
key1
;
# to test the bug, the following must use "sort_union":
--
replace_column
9
REF
explain
select
*
from
t1
where
(
key3
>
30
and
key3
<
35
)
or
(
key2
>
32
and
key2
<
40
);
select
*
from
t1
where
(
key3
>
30
and
key3
<
35
)
or
(
key2
>
32
and
key2
<
40
);
drop
table
t1
;
...
...
mysql-test/r/index_merge_innodb.result
View file @
6f94b5c7
...
...
@@ -313,7 +313,7 @@ alter table t1 add index i3(key3);
update t1 set key2=key1,key3=key1;
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
1 SIMPLE t1 index_merge i2,i3 i3,i2 4,4 NULL
9
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
select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
key1 key2 key3
31 31 31
...
...
mysql-test/r/index_merge_myisam.result
View file @
6f94b5c7
...
...
@@ -1146,7 +1146,7 @@ alter table t1 add index i3(key3);
update t1 set key2=key1,key3=key1;
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
1 SIMPLE t1 index_merge i2,i3 i3,i2 4,4 NULL
11
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
select * from t1 where (key3 > 30 and key3<35) or (key2 >32 and key2 < 40);
key1 key2 key3
31 31 31
...
...
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