From 798218747683359197e517513d367a57f67f0326 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 30 Aug 2004 16:12:53 +0200 Subject: space-stripping in _mi_prefix_search: BUG#5284 --- myisam/mi_search.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'myisam') diff --git a/myisam/mi_search.c b/myisam/mi_search.c index 24f5db1401d..bc8be9c2732 100644 --- a/myisam/mi_search.c +++ b/myisam/mi_search.c @@ -451,9 +451,8 @@ int _mi_prefix_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page, /* We have to compare k and vseg as if they where space extended */ for (end=vseg + (len-cmplen) ; vseg < end && *vseg == (uchar) ' '; - vseg++) ; - if (vseg == end) - goto cmp_rest; /* should never happen */ + vseg++, matched++) ; + DBUG_ASSERT(vseg < end); if (*vseg > (uchar) ' ') { -- cgit v1.2.1