summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-01-21 23:29:17 +0100
committerunknown <serg@serg.mylan>2004-01-21 23:29:17 +0100
commit0ef9acc9a9932ea63ff41d4528231632f3a3d31d (patch)
tree129bb0d5f173f2b8cd7a76e4027d1dc587457261 /myisam
parent2c3fdcf749b57d4b168710606c84f42943a4ad24 (diff)
downloadmariadb-git-0ef9acc9a9932ea63ff41d4528231632f3a3d31d.tar.gz
two more bugfixes for "space stripping in MyISAM indexes"
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_search.c b/myisam/mi_search.c
index c6ee18a8477..b98ee351195 100644
--- a/myisam/mi_search.c
+++ b/myisam/mi_search.c
@@ -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--;