1
0
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:
unknown
2004-01-21 23:29:17 +01:00
parent 2c3fdcf749
commit 0ef9acc9a9
3 changed files with 7 additions and 2 deletions

View File

@ -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--;

View File

@ -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;

View File

@ -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;