Commit 0980b874 authored by unknown's avatar unknown

iA fix for small bug that returns wrong index instead of enf of file

parent d2e442f5
......@@ -24,6 +24,12 @@ int heap_rnext(HP_INFO *info, byte *record)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment