summaryrefslogtreecommitdiff
path: root/sql/log_event_old.cc
diff options
context:
space:
mode:
author <Dao-Gang.Qu@sun.com>2009-10-23 11:13:42 +0800
committer <Dao-Gang.Qu@sun.com>2009-10-23 11:13:42 +0800
commit1fb18b5d4c12331ca10787985ce10fd13d45104d (patch)
treef195a7ea7444d38b3ec40036bf0eb5e9b45f745e /sql/log_event_old.cc
parent8a60aa18b6b21dbce3e0773469c3e183fc99765a (diff)
downloadmariadb-git-1fb18b5d4c12331ca10787985ce10fd13d45104d.tar.gz
Bug#46640: output from mysqlbinlog command in 5.1 breaks replication
Added parentheses around assignment used as truth value for suppressing warnings.
Diffstat (limited to 'sql/log_event_old.cc')
-rw-r--r--sql/log_event_old.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log_event_old.cc b/sql/log_event_old.cc
index 3389821a718..357bc78b1cd 100644
--- a/sql/log_event_old.cc
+++ b/sql/log_event_old.cc
@@ -1842,7 +1842,7 @@ int Old_rows_log_event::do_apply_event(Relay_log_info const *rli)
are involved, commit the transaction and flush the pending event to the
binlog.
*/
- if (error= ha_autocommit_or_rollback(thd, 0))
+ if ((error= ha_autocommit_or_rollback(thd, 0)))
rli->report(ERROR_LEVEL, error,
"Error in %s event: commit of row events failed, "
"table `%s`.`%s`",