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
b0696f54
Commit
b0696f54
authored
Jul 02, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix testcase to be platform-independent
parent
07dcc800
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+3
-3
mysql-test/t/innodb_mysql.test
mysql-test/t/innodb_mysql.test
+3
-1
No files found.
mysql-test/r/innodb_mysql.result
View file @
b0696f54
drop table if exists t1,t2;
drop table if exists t1,t2
,t3,t4
;
create table t1 (
c_id int(11) not null default '0',
org_id int(11) default null,
...
...
@@ -711,7 +711,7 @@ EXPLAIN
SELECT COUNT(*) FROM t1
WHERE (c >= '2007-01-02' AND c <= '2007-01-03') OR b >= 1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL idx_b,idx_c NULL NULL NULL
3263
Using where
1 SIMPLE t1 ALL idx_b,idx_c NULL NULL NULL
#
Using where
SELECT COUNT(*) FROM t1
WHERE (c >= '2007-01-02' AND c <= '2007-01-03') OR b >= 1;
COUNT(*)
...
...
@@ -720,7 +720,7 @@ EXPLAIN
SELECT COUNT(*) FROM t1 FORCE INDEX(idx_b, idx_c)
WHERE (c >= '2007-01-02' AND c <= '2007-01-03') OR b >= 1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index_merge idx_b,idx_c idx_c,idx_b 8,4 NULL
3262
Using sort_union(idx_c,idx_b); Using where
1 SIMPLE t1 index_merge idx_b,idx_c idx_c,idx_b 8,4 NULL
#
Using sort_union(idx_c,idx_b); Using where
SELECT COUNT(*) FROM t1 FORCE INDEX(idx_b, idx_c)
WHERE (c >= '2007-01-02' AND c <= '2007-01-03') OR b >= 1;
COUNT(*)
...
...
mysql-test/t/innodb_mysql.test
View file @
b0696f54
--
source
include
/
have_innodb
.
inc
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
drop
table
if
exists
t1
,
t2
,
t3
,
t4
;
--
enable_warnings
# BUG#16798: Uninitialized row buffer reads in ref-or-null optimizer
...
...
@@ -709,12 +709,14 @@ set @@sort_buffer_size=8192;
SELECT
COUNT
(
*
)
FROM
t1
;
--
replace_column
9
#
EXPLAIN
SELECT
COUNT
(
*
)
FROM
t1
WHERE
(
c
>=
'2007-01-02'
AND
c
<=
'2007-01-03'
)
OR
b
>=
1
;
SELECT
COUNT
(
*
)
FROM
t1
WHERE
(
c
>=
'2007-01-02'
AND
c
<=
'2007-01-03'
)
OR
b
>=
1
;
--
replace_column
9
#
EXPLAIN
SELECT
COUNT
(
*
)
FROM
t1
FORCE
INDEX
(
idx_b
,
idx_c
)
WHERE
(
c
>=
'2007-01-02'
AND
c
<=
'2007-01-03'
)
OR
b
>=
1
;
...
...
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