mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
small bug fix, read more about it in 4.0
This commit is contained in:
parent
1a7c7d763c
commit
336fcc224e
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue