summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-12-01 00:48:35 +0200
committermonty@mashka.mysql.fi <>2002-12-01 00:48:35 +0200
commitd02d23c4c0e5dcd3c47925ef77f5e398afe2c0c7 (patch)
treea726bf37c8fdf17db95a039fbba27a43d981696f /sql/sql_update.cc
parentbd53a30858626d6efd58f3016ed3d716fc0efd0f (diff)
downloadmariadb-git-d02d23c4c0e5dcd3c47925ef77f5e398afe2c0c7.tar.gz
Fixed some bugs from last multi-table-update push.
More tests for multi-table-update & timestamp handling
Diffstat (limited to 'sql/sql_update.cc')
-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 12d0ee8d7a2..887d4e0acc0 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -832,7 +832,7 @@ bool multi_update::send_eof()
Query_log_event qinfo(thd, thd->query, thd->query_length,
log_delayed);
if (mysql_bin_log.write(&qinfo) && trans_safe)
- local_error=1; // Rollback update
+ local_error= 1; // Rollback update
}
if (!log_delayed)
thd->options|=OPTION_STATUS_NO_TRANS_UPDATE;
@@ -840,7 +840,7 @@ bool multi_update::send_eof()
if (transactional_tables)
{
- if (ha_autocommit_or_rollback(thd, local_error >= 0))
+ if (ha_autocommit_or_rollback(thd, local_error != 0))
local_error=1;
}