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
224e8553
Commit
224e8553
authored
Nov 08, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/psergey/mysql-4.1-bug13814
into mysql.com:/home/psergey/mysql-4.1-nov08-push
parents
3a528ddf
81882f71
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
myisam/mi_key.c
myisam/mi_key.c
+3
-0
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+18
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+18
-0
No files found.
myisam/mi_key.c
View file @
224e8553
...
@@ -217,7 +217,10 @@ uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old,
...
@@ -217,7 +217,10 @@ uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old,
{
{
k_length
-=
length
;
k_length
-=
length
;
if
(
keyseg
->
flag
&
(
HA_VAR_LENGTH
|
HA_BLOB_PART
))
if
(
keyseg
->
flag
&
(
HA_VAR_LENGTH
|
HA_BLOB_PART
))
{
old
+=
2
;
k_length
-=
2
;
/* Skip length */
k_length
-=
2
;
/* Skip length */
}
continue
;
/* Found NULL */
continue
;
/* Found NULL */
}
}
}
}
...
...
mysql-test/r/myisam.result
View file @
224e8553
...
@@ -702,3 +702,21 @@ t1 1 a 2 b A 0 NULL NULL YES BTREE
...
@@ -702,3 +702,21 @@ t1 1 a 2 b A 0 NULL NULL YES BTREE
t1 1 a 3 c A 0 NULL NULL YES BTREE
t1 1 a 3 c A 0 NULL NULL YES BTREE
t1 1 a 4 d A 0 NULL NULL YES BTREE
t1 1 a 4 d A 0 NULL NULL YES BTREE
set myisam_stats_method=DEFAULT;
set myisam_stats_method=DEFAULT;
drop table t1;
create table t1(
cip INT NOT NULL,
time TIME NOT NULL,
score INT NOT NULL DEFAULT 0,
bob TINYBLOB
);
insert into t1 (cip, time) VALUES (1, '00:01'), (2, '00:02'), (3,'00:03');
insert into t1 (cip, bob, time) VALUES (4, 'a', '00:04'), (5, 'b', '00:05'),
(6, 'c', '00:06');
select * from t1 where bob is null and cip=1;
cip time score bob
1 00:01:00 0 NULL
create index bug on t1 (bob(22), cip, time);
select * from t1 where bob is null and cip=1;
cip time score bob
1 00:01:00 0 NULL
drop table t1;
mysql-test/t/myisam.test
View file @
224e8553
...
@@ -656,4 +656,22 @@ analyze table t1;
...
@@ -656,4 +656,22 @@ analyze table t1;
show
index
from
t1
;
show
index
from
t1
;
set
myisam_stats_method
=
DEFAULT
;
set
myisam_stats_method
=
DEFAULT
;
drop
table
t1
;
# BUG#13814 - key value packed incorrectly for TINYBLOBs
create
table
t1
(
cip
INT
NOT
NULL
,
time
TIME
NOT
NULL
,
score
INT
NOT
NULL
DEFAULT
0
,
bob
TINYBLOB
);
insert
into
t1
(
cip
,
time
)
VALUES
(
1
,
'00:01'
),
(
2
,
'00:02'
),
(
3
,
'00:03'
);
insert
into
t1
(
cip
,
bob
,
time
)
VALUES
(
4
,
'a'
,
'00:04'
),
(
5
,
'b'
,
'00:05'
),
(
6
,
'c'
,
'00:06'
);
select
*
from
t1
where
bob
is
null
and
cip
=
1
;
create
index
bug
on
t1
(
bob
(
22
),
cip
,
time
);
select
*
from
t1
where
bob
is
null
and
cip
=
1
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
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