diff options
author | sergefp@mysql.com <> | 2004-11-29 06:51:30 +0300 |
---|---|---|
committer | sergefp@mysql.com <> | 2004-11-29 06:51:30 +0300 |
commit | 0bf584d9a5b1fc44b6d5ef2d6debe19559b27f30 (patch) | |
tree | 0212745a88314b9199da4949005a684b4e2167f3 /myisam/mi_rnext_same.c | |
parent | cb538e45f5f18c71c22daed3acd983ec9ff97176 (diff) | |
download | mariadb-git-0bf584d9a5b1fc44b6d5ef2d6debe19559b27f30.tar.gz |
Fix and testcase for BUG#6699
Diffstat (limited to 'myisam/mi_rnext_same.c')
-rw-r--r-- | myisam/mi_rnext_same.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/myisam/mi_rnext_same.c b/myisam/mi_rnext_same.c index 1342718d6aa..a50c578e081 100644 --- a/myisam/mi_rnext_same.c +++ b/myisam/mi_rnext_same.c @@ -88,6 +88,10 @@ int mi_rnext_same(MI_INFO *info, byte *buf) if (my_errno == HA_ERR_KEY_NOT_FOUND) my_errno=HA_ERR_END_OF_FILE; } + else if (!buf) + { + DBUG_RETURN(info->lastpos==HA_OFFSET_ERROR ? my_errno : 0); + } else if (!(*info->read_record)(info,info->lastpos,buf)) { info->update|= HA_STATE_AKTIV; /* Record is read */ |