From 3ec7456f8d9679e155d536c85d023585874eec67 Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Tue, 12 Aug 2003 19:21:38 +0200 Subject: [PATCH] isam SEARCH_LAST bug fixed --- isam/_search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isam/_search.c b/isam/_search.c index 93a08ea2b0d..c005e9ddb69 100644 --- a/isam/_search.c +++ b/isam/_search.c @@ -119,7 +119,7 @@ int _nisam_search(register N_INFO *info, register N_KEYDEF *keyinfo, uchar *key, { keypos=_nisam_get_last_key(info,keyinfo,buff,lastkey,keypos); if ((nextflag & SEARCH_LAST) && - _nisam_key_cmp(keyinfo->seg, info->lastkey, key, key_len, SEARCH_FIND)) + _nisam_key_cmp(keyinfo->seg, lastkey, key, key_len, SEARCH_FIND)) { my_errno=HA_ERR_KEY_NOT_FOUND; /* Didn't find key */ goto err;