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
d66770b5
Commit
d66770b5
authored
Jun 23, 2005
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/psergey/mysql-5.0-back-vac-look
parents
98ddf74d
014fe015
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
mysql-test/r/index_merge_innodb.result
mysql-test/r/index_merge_innodb.result
+11
-0
mysql-test/t/index_merge_innodb.test
mysql-test/t/index_merge_innodb.test
+11
-0
sql/opt_range.cc
sql/opt_range.cc
+2
-2
No files found.
mysql-test/r/index_merge_innodb.result
View file @
d66770b5
...
...
@@ -123,3 +123,14 @@ key1a = 2 and key1b is null and key3a = 2 and key3b is null;
count(*)
4
drop table t1,t2;
create table t1 (
id1 int,
id2 date ,
index idx2 (id1,id2),
index idx1 (id2)
) engine = innodb;
insert into t1 values(1,'20040101'), (2,'20040102');
select * from t1 where id1 = 1 and id2= '20040101';
id1 id2
1 2004-01-01
drop table t1;
mysql-test/t/index_merge_innodb.test
View file @
d66770b5
...
...
@@ -120,3 +120,14 @@ select count(*) from t1 where
drop
table
t1
,
t2
;
# Test for BUG#8441
create
table
t1
(
id1
int
,
id2
date
,
index
idx2
(
id1
,
id2
),
index
idx1
(
id2
)
)
engine
=
innodb
;
insert
into
t1
values
(
1
,
'20040101'
),
(
2
,
'20040102'
);
select
*
from
t1
where
id1
=
1
and
id2
=
'20040101'
;
drop
table
t1
;
sql/opt_range.cc
View file @
d66770b5
...
...
@@ -2593,12 +2593,12 @@ static double ror_scan_selectivity(const ROR_INTERSECT_INFO *info,
{
tuple_arg
=
scan
->
sel_arg
;
/* Here we use the length of the first key part */
tuple_arg
->
store_min
(
key_part
->
length
,
&
key_ptr
,
0
);
tuple_arg
->
store_min
(
key_part
->
store_
length
,
&
key_ptr
,
0
);
}
while
(
tuple_arg
->
next_key_part
!=
sel_arg
)
{
tuple_arg
=
tuple_arg
->
next_key_part
;
tuple_arg
->
store_min
(
key_part
[
tuple_arg
->
part
].
length
,
&
key_ptr
,
0
);
tuple_arg
->
store_min
(
key_part
[
tuple_arg
->
part
].
store_
length
,
&
key_ptr
,
0
);
}
min_range
.
length
=
max_range
.
length
=
((
char
*
)
key_ptr
-
(
char
*
)
key_val
);
records
=
(
info
->
param
->
table
->
file
->
...
...
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