summaryrefslogtreecommitdiff
path: root/myisammrg/myrg_write.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_write.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_write.c')
-rw-r--r--myisammrg/myrg_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisammrg/myrg_write.c b/myisammrg/myrg_write.c
index 4e597005503..f911355aed5 100644
--- a/myisammrg/myrg_write.c
+++ b/myisammrg/myrg_write.c
@@ -26,5 +26,5 @@ int myrg_write(register MYRG_INFO *info, byte *rec)
else if (info->merge_insert_method == MERGE_INSERT_TO_LAST)
return mi_write(info->end_table[-1].table,rec);
else /* unsupported insertion method */
- return (my_errno=HA_ERR_WRONG_COMMAND);
+ return my_errno=HA_ERR_WRONG_COMMAND;
}