mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
isam SEARCH_LAST bug fixed
This commit is contained in:
parent
2fd6684928
commit
3ec7456f8d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
keypos=_nisam_get_last_key(info,keyinfo,buff,lastkey,keypos);
|
||||||
if ((nextflag & SEARCH_LAST) &&
|
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 */
|
my_errno=HA_ERR_KEY_NOT_FOUND; /* Didn't find key */
|
||||||
goto err;
|
goto err;
|
||||||
|
|
Loading…
Add table
Reference in a new issue