diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-03-06 14:39:16 +0200 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-03-06 14:39:16 +0200 |
commit | 0980b8744d41699406bc9fb7ca0a7e2366c69efb (patch) | |
tree | 95419dbf4192c30905390c1d7874c512cebd3a96 /heap | |
parent | d2e442f5d2b2fa4eb045a34ccdd64c6e9d3915bd (diff) | |
download | mariadb-git-0980b8744d41699406bc9fb7ca0a7e2366c69efb.tar.gz |
iA fix for small bug that returns wrong index instead of enf of file
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); |