summaryrefslogtreecommitdiff
path: root/isam
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-08-12 19:21:38 +0200
committerunknown <serg@serg.mylan>2003-08-12 19:21:38 +0200
commit7e7edcf9b6486caef09dcc3bf50a2e2ca4bf0f79 (patch)
treebedfad083dbae11911e60022fa414fd8b4d3bdb3 /isam
parent0a4730930044e78baae03296237830fc58c72672 (diff)
downloadmariadb-git-7e7edcf9b6486caef09dcc3bf50a2e2ca4bf0f79.tar.gz
isam SEARCH_LAST bug fixed
Diffstat (limited to 'isam')
-rw-r--r--isam/_search.c2
1 files changed, 1 insertions, 1 deletions
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;