summaryrefslogtreecommitdiff
path: root/myisammrg/myrg_rprev.c
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mysql.com>2002-06-25 16:32:16 +0200
committerunknown <serg@sergbook.mysql.com>2002-06-25 16:32:16 +0200
commit49f161cf17cb8fefe6bf0ad341e09faae24ac5ba (patch)
tree5aafc6ed30e3f9c1935748942adb550c92a38aac /myisammrg/myrg_rprev.c
parent2a32642d8fc8e335016a5c9bc99b82065428645a (diff)
downloadmariadb-git-49f161cf17cb8fefe6bf0ad341e09faae24ac5ba.tar.gz
do not crash on myrg_rprev/myrg_rnext if no current table
(as when previous myrg_rkey failed, e.g. found nothing) myisammrg/myrg_delete.c: style fix myisammrg/myrg_locking.c: style fix myisammrg/myrg_rnext.c: do not crash on rprev/rnext if no current table (as when previous rkey failed, e.g. found nothing) myisammrg/myrg_rprev.c: do not crash on rprev/rnext if no current table (as when previous rkey failed, e.g. found nothing) myisammrg/myrg_rrnd.c: style fix myisammrg/myrg_rsame.c: style fix myisammrg/myrg_update.c: style fix myisammrg/myrg_write.c: style fix
Diffstat (limited to 'myisammrg/myrg_rprev.c')
-rw-r--r--myisammrg/myrg_rprev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisammrg/myrg_rprev.c b/myisammrg/myrg_rprev.c
index cb56acd1a73..e6d0283ccb3 100644
--- a/myisammrg/myrg_rprev.c
+++ b/myisammrg/myrg_rprev.c
@@ -25,8 +25,8 @@ int myrg_rprev(MYRG_INFO *info, byte *buf, int inx)
int err;
MI_INFO *mi;
- if (!info || !info->current_table)
- return HA_ERR_UNSUPPORTED;
+ if (!info->current_table)
+ return HA_ERR_KEY_NOT_FOUND;
/* at first, do rprev for the table found before */
if ((err=mi_rprev(info->current_table->table,NULL,inx)))