mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
iA fix for small bug that returns wrong index instead of enf of file
This commit is contained in:
parent
d2e442f5d2
commit
0980b8744d
1 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,12 @@ int heap_rnext(HP_INFO *info, byte *record)
|
||||||
HP_SHARE *share=info->s;
|
HP_SHARE *share=info->s;
|
||||||
DBUG_ENTER("heap_rnext");
|
DBUG_ENTER("heap_rnext");
|
||||||
|
|
||||||
|
if (!(info->s->records))
|
||||||
|
{
|
||||||
|
my_errno=HA_ERR_END_OF_FILE;
|
||||||
|
DBUG_RETURN(my_errno);
|
||||||
|
}
|
||||||
|
|
||||||
if (info->lastinx < 0)
|
if (info->lastinx < 0)
|
||||||
DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
|
DBUG_RETURN(my_errno=HA_ERR_WRONG_INDEX);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue