diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-03-06 14:41:26 +0200 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-03-06 14:41:26 +0200 |
commit | c00ddbab5477d623ce00046e43fc0573052219e1 (patch) | |
tree | 64d137bdf5824da57bb1b58364af3ae0c0174d93 /heap | |
parent | 7779e2cbe6da21258b0f71c5bf1d766b686ad3cf (diff) | |
parent | 5d83add47180a0b0603a233385add2c51e7b39ef (diff) | |
download | mariadb-git-c00ddbab5477d623ce00046e43fc0573052219e1.tar.gz |
Merge sinisa@work.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/hdc/Sinisa/mysql-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); |