diff options
author | unknown <serg@sergbook.mysql.com> | 2002-06-25 16:32:16 +0200 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2002-06-25 16:32:16 +0200 |
commit | 49f161cf17cb8fefe6bf0ad341e09faae24ac5ba (patch) | |
tree | 5aafc6ed30e3f9c1935748942adb550c92a38aac /myisammrg/myrg_rnext.c | |
parent | 2a32642d8fc8e335016a5c9bc99b82065428645a (diff) | |
download | mariadb-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_rnext.c')
-rw-r--r-- | myisammrg/myrg_rnext.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/myisammrg/myrg_rnext.c b/myisammrg/myrg_rnext.c index abb9ef95e44..20c73877b77 100644 --- a/myisammrg/myrg_rnext.c +++ b/myisammrg/myrg_rnext.c @@ -25,6 +25,9 @@ int myrg_rnext(MYRG_INFO *info, byte *buf, int inx) int err; MI_INFO *mi; + if (!info->current_table) + return HA_ERR_KEY_NOT_FOUND; + /* at first, do rnext for the table found before */ if ((err=mi_rnext(info->current_table->table,NULL,inx))) { |