Commit 9eef017c authored by unknown's avatar unknown

Merge work:/home/bk/mysql

into sergbook.mysql.com:/usr/home/serg/Abk/mysql

parents 99bde364 88012698
...@@ -25,6 +25,9 @@ int myrg_rnext(MYRG_INFO *info, byte *buf, int inx) ...@@ -25,6 +25,9 @@ int myrg_rnext(MYRG_INFO *info, byte *buf, int inx)
int err; int err;
MI_INFO *mi; MI_INFO *mi;
if (!info->current_table)
return (HA_ERR_KEY_NOT_FOUND);
/* at first, do rnext for the table found before */ /* at first, do rnext for the table found before */
if ((err=mi_rnext(info->current_table->table,NULL,inx))) if ((err=mi_rnext(info->current_table->table,NULL,inx)))
{ {
......
...@@ -25,6 +25,9 @@ int myrg_rprev(MYRG_INFO *info, byte *buf, int inx) ...@@ -25,6 +25,9 @@ int myrg_rprev(MYRG_INFO *info, byte *buf, int inx)
int err; int err;
MI_INFO *mi; MI_INFO *mi;
if (!info->current_table)
return (HA_ERR_KEY_NOT_FOUND);
/* at first, do rprev for the table found before */ /* at first, do rprev for the table found before */
if ((err=mi_rprev(info->current_table->table,NULL,inx))) if ((err=mi_rprev(info->current_table->table,NULL,inx)))
{ {
......
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