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
ca94028a
Commit
ca94028a
authored
Dec 06, 2010
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test case to be repeatable (after discussion with Igor)
parent
42746a44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/r/index_merge_innodb.result
mysql-test/r/index_merge_innodb.result
+1
-1
mysql-test/t/index_merge_innodb.test
mysql-test/t/index_merge_innodb.test
+3
-1
No files found.
mysql-test/r/index_merge_innodb.result
View file @
ca94028a
...
...
@@ -686,7 +686,7 @@ INSERT INTO t1 VALUES (1000000, 0, 0);
SET SESSION sort_buffer_size = 1024*36;
EXPLAIN
SELECT COUNT(*) FROM
(SELECT * FROM t1
(SELECT * FROM t1
FORCE INDEX(primary,idx)
WHERE a BETWEEN 2 AND 7 OR pk=1000000) AS t;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
...
...
mysql-test/t/index_merge_innodb.test
View file @
ca94028a
...
...
@@ -64,9 +64,11 @@ INSERT INTO t1 VALUES (1000000, 0, 0);
SET
SESSION
sort_buffer_size
=
1024
*
36
;
# We have to use FORCE INDEX here as Innodb gives inconsistent estimates
# which causes different query plans.
EXPLAIN
SELECT
COUNT
(
*
)
FROM
(
SELECT
*
FROM
t1
(
SELECT
*
FROM
t1
FORCE
INDEX
(
primary
,
idx
)
WHERE
a
BETWEEN
2
AND
7
OR
pk
=
1000000
)
AS
t
;
SELECT
COUNT
(
*
)
FROM
(
SELECT
*
FROM
t1
...
...
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