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
25545b4b
Commit
25545b4b
authored
Jul 14, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#29740: Make the test result deterministic
parent
a90ccb1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
mysql-test/r/index_merge.result
mysql-test/r/index_merge.result
+14
-14
mysql-test/t/index_merge.test
mysql-test/t/index_merge.test
+5
-0
No files found.
mysql-test/r/index_merge.result
View file @
25545b4b
...
...
@@ -483,36 +483,36 @@ insert into t2 select * from t1;
must use sort-union rather than union:
explain select * from t1 where a=4 or b=4;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index_merge a,b a,b 5,5 NULL
4
Using sort_union(a,b); Using where
1 SIMPLE t1 index_merge a,b a,b 5,5 NULL
#
Using sort_union(a,b); Using where
select * from t1 where a=4 or b=4;
a filler b
4 zz 4
5 qq 4
4 filler 4
4 qq 5
4 4 0
4 filler 4
4 5 0
4 filler 4
4 filler 4
4 qq 5
4 zz 4
5 qq 4
select * from t1 ignore index(a,b) where a=4 or b=4;
a filler b
4 4 0
4 5 0
4 filler 4
4 filler 4
4 5 0
4 4 0
4 qq 5
5 qq 4
4 zz 4
5 qq 4
must use union, not sort-union:
explain select * from t2 where a=4 or b=4;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 index_merge a,b a,b 5,5 NULL
7
Using union(a,b); Using where
1 SIMPLE t2 index_merge a,b a,b 5,5 NULL
#
Using union(a,b); Using where
select * from t2 where a=4 or b=4;
a filler b
4 4 0
4 5 0
4 zz 4
5 qq 4
4 filler 4
4 qq 5
4 4 0
4 filler 4
4 qq 5
4 zz 4
5 qq 4
drop table t1, t2;
mysql-test/t/index_merge.test
View file @
25545b4b
...
...
@@ -448,12 +448,17 @@ create table t2(
insert
into
t2
select
*
from
t1
;
--
echo
must
use
sort
-union rather than union:
--replace_column 9 #
explain select * from t1 where a=4 or b=4
;
--
sorted_result
select
*
from
t1
where
a
=
4
or
b
=
4
;
--
sorted_result
select
*
from
t1
ignore
index
(
a
,
b
)
where
a
=
4
or
b
=
4
;
--
echo
must
use
union
, not sort-union:
--replace_column 9 #
explain select * from t2 where a=4 or b=4
;
--
sorted_result
select
*
from
t2
where
a
=
4
or
b
=
4
;
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