summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2010-11-05 11:54:42 +0200
committerMichael Widenius <monty@askmonty.org>2010-11-05 11:54:42 +0200
commitfdd6963890d5cd793155d135c3fa321ecb5b704d (patch)
tree6b6b775dc63b220219641c0ac18945dc9342ca95
parent2dc2098e5989cd92cf6d90b66324c37bc105d5ad (diff)
downloadmariadb-git-fdd6963890d5cd793155d135c3fa321ecb5b704d.tar.gz
Fixed usage of wrong variable in case of errors
-rw-r--r--sql/sql_update.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index acdf262f977..aa803d6e0dd 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -2072,8 +2072,8 @@ int multi_update::do_updates()
err:
{
thd->fatal_error();
- prepare_record_for_error_message(local_error, table);
- table->file->print_error(local_error,MYF(0));
+ prepare_record_for_error_message(local_error, err_table);
+ err_table->file->print_error(local_error,MYF(0));
}
err2: