diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-03-06 14:56:54 +0200 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-03-06 14:56:54 +0200 |
commit | 4d8d7f206166b107f6e79d24be6c9a3cfbf3d464 (patch) | |
tree | 30025f2005fd48806385974f7f67c02ef738ff0c /heap | |
parent | 0e7c34920d16340102b1d059f5dc77c31bfc3397 (diff) | |
download | mariadb-git-4d8d7f206166b107f6e79d24be6c9a3cfbf3d464.tar.gz |
small bug fix, read more about it in 4.0
Diffstat (limited to 'heap')
-rw-r--r-- | heap/hp_rnext.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/heap/hp_rnext.c b/heap/hp_rnext.c index 4e5cb7e37c2..7a6b6846169 100644 --- a/heap/hp_rnext.c +++ b/heap/hp_rnext.c @@ -23,6 +23,12 @@ int heap_rnext(HP_INFO *info, byte *record) byte *pos; HP_SHARE *share=info->s; DBUG_ENTER("heap_rnext"); + + if (!(info->s->records)) + { + my_errno=HA_ERR_END_OF_FILE; + DBUG_RETURN(my_errno); + } if (info->lastinx < 0) DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX); |