do not crash on myrg_rprev/myrg_rnext if no current table

(as when previous myrg_rkey failed, e.g. found nothing)
This commit is contained in:
serg@sergbook.mysql.com 2002-06-25 16:32:16 +02:00
commit aff5d8fd7f
8 changed files with 16 additions and 17 deletions

View file

@ -26,5 +26,5 @@ int myrg_write(register MYRG_INFO *info, byte *rec)
else if (info->merge_insert_method == MERGE_INSERT_TO_LAST)
return mi_write(info->end_table[-1].table,rec);
else /* unsupported insertion method */
return (my_errno=HA_ERR_WRONG_COMMAND);
return my_errno=HA_ERR_WRONG_COMMAND;
}