mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
two more bugfixes for "space stripping in MyISAM indexes"
This commit is contained in:
@ -847,7 +847,7 @@ int _mi_key_cmp(register MI_KEYSEG *keyseg, register uchar *a,
|
||||
full_b_length=b_length;
|
||||
next_key_length=key_length-b_length-pack_length;
|
||||
|
||||
if (!(nextflag & (SEARCH_PREFIX | SEARCH_UPDATE)))
|
||||
if ((nextflag & (SEARCH_FIND | SEARCH_UPDATE)) == SEARCH_FIND)
|
||||
{
|
||||
while (a_length && a[a_length-1] == ' ')
|
||||
a_length--;
|
||||
|
@ -390,4 +390,8 @@ insert into t1 values ('aaa '),('aaa');
|
||||
repair table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair status OK
|
||||
select concat(a,'.') from t1 where a='aaa';
|
||||
concat(a,'.')
|
||||
aaa.
|
||||
aaa .
|
||||
drop table t1;
|
||||
|
@ -387,10 +387,11 @@ check table t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# sort-repair bug
|
||||
# two bugs in myisam-space-stripping feature
|
||||
#
|
||||
create table t1 ( a text not null, key a (a(20)));
|
||||
insert into t1 values ('aaa '),('aaa');
|
||||
repair table t1;
|
||||
select concat(a,'.') from t1 where a='aaa';
|
||||
drop table t1;
|
||||
|
||||
|
Reference in New Issue
Block a user