diff options
author | unknown <serg@serg.mysql.com> | 2002-10-25 14:16:52 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-10-25 14:16:52 +0000 |
commit | ac9445a7ae9c8d6c63f927be54d17046cc674516 (patch) | |
tree | 42d7016082593c36ed40f91487de4473648b102b /isam | |
parent | 14e6526a0b3e005ded73df5adba4c67e461ec16e (diff) | |
download | mariadb-git-ac9445a7ae9c8d6c63f927be54d17046cc674516.tar.gz |
full support for HA_READ_PREFIX_LAST_OR_PREV in ISAM
Diffstat (limited to 'isam')
-rw-r--r-- | isam/_search.c | 2 | ||||
-rw-r--r-- | isam/static.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/isam/_search.c b/isam/_search.c index 445340a21d6..d5e145ae0bf 100644 --- a/isam/_search.c +++ b/isam/_search.c @@ -118,7 +118,7 @@ int _nisam_search(register N_INFO *info, register N_KEYDEF *keyinfo, uchar *key, if ((nextflag & (SEARCH_SMALLER | SEARCH_LAST)) && flag != 0) { keypos=_nisam_get_last_key(info,keyinfo,buff,lastkey,keypos); - if ((nextflag & SEARCH_LAST) && + if (!(nextflag & SEARCH_SMALLER) && _nisam_key_cmp(keyinfo->seg, info->lastkey, key, key_len, SEARCH_FIND)) { my_errno=HA_ERR_KEY_NOT_FOUND; /* Didn't find key */ diff --git a/isam/static.c b/isam/static.c index 9c68a0cfdba..0a8dc809ad7 100644 --- a/isam/static.c +++ b/isam/static.c @@ -41,5 +41,5 @@ uint NEAR nisam_read_vec[]= { SEARCH_FIND, SEARCH_FIND | SEARCH_BIGGER, SEARCH_FIND | SEARCH_SMALLER, SEARCH_NO_FIND | SEARCH_BIGGER, SEARCH_NO_FIND | SEARCH_SMALLER, - SEARCH_FIND, SEARCH_LAST + SEARCH_FIND, SEARCH_LAST,SEARCH_LAST | SEARCH_SMALLER }; |