diff options
author | serg@sergbook.mysql.com <> | 2002-06-25 16:32:16 +0200 |
---|---|---|
committer | serg@sergbook.mysql.com <> | 2002-06-25 16:32:16 +0200 |
commit | aff5d8fd7f984242e820c18001127d135c7566cc (patch) | |
tree | 5aafc6ed30e3f9c1935748942adb550c92a38aac /myisammrg/myrg_update.c | |
parent | a0cfa7897037997d3fbbe54ba0a3be8ca8991b73 (diff) | |
download | mariadb-git-aff5d8fd7f984242e820c18001127d135c7566cc.tar.gz |
do not crash on myrg_rprev/myrg_rnext if no current table
(as when previous myrg_rkey failed, e.g. found nothing)
Diffstat (limited to 'myisammrg/myrg_update.c')
-rw-r--r-- | myisammrg/myrg_update.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/myisammrg/myrg_update.c b/myisammrg/myrg_update.c index cb1b0b51ef9..0d4fc0bf215 100644 --- a/myisammrg/myrg_update.c +++ b/myisammrg/myrg_update.c @@ -21,6 +21,7 @@ int myrg_update(register MYRG_INFO *info,const byte *oldrec, byte *newrec) { if (!info->current_table) - return(my_errno=HA_ERR_NO_ACTIVE_RECORD); + return my_errno=HA_ERR_NO_ACTIVE_RECORD; + return mi_update(info->current_table->table,oldrec,newrec); } |