From 6265e94c350650b43d8b8002ea1dde527c44b7af Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 7 Mar 2002 14:19:18 +0200 Subject: Same patches as for 4.0. See there for details --- heap/hp_rfirst.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'heap/hp_rfirst.c') diff --git a/heap/hp_rfirst.c b/heap/hp_rfirst.c index 9a1f09244a0..b20918ff3a7 100644 --- a/heap/hp_rfirst.c +++ b/heap/hp_rfirst.c @@ -21,6 +21,11 @@ int heap_rfirst(HP_INFO *info, byte *record) { DBUG_ENTER("heap_rfirst"); + if (!(info->s->records)) + { + my_errno=HA_ERR_END_OF_FILE; + DBUG_RETURN(my_errno); + } info->current_record=0; info->current_hash_ptr=0; info->update=HA_STATE_PREV_FOUND; -- cgit v1.2.1