mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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:
parent
a0cfa78970
commit
aff5d8fd7f
8 changed files with 16 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue