From: Date: July 18 2005 11:47pm Subject: bk commit into 5.0 tree (elliot:1.1946) BUG#11567 List-Archive: http://lists.mysql.com/internals/27267 X-Bug: 11567 Message-Id: <20050718214734.7F6E43DB92A@agony.raraavisresearch.com> Below is the list of changes that have just been committed into a local 5.0 repository of emurphy. When emurphy does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.1946 05/07/18 17:47:26 elliot@stripped +1 -0 BUG#11567 Fixed binlog tests on windows. sql/log_event.cc 1.183 05/07/18 17:47:21 elliot@stripped +1 -1 BUG#11567 - mysqlbinlog tests failing on Windows. Cast was not working as intended with Windows compiler, the value of option was being printed instead. Reason is that config-win.h has '#define bool BOOL', and on Windows BOOL is a typedef for int, which means that all casts to bool are really a cast to int. Changed to explicitly print a 1 or 0 instead of using cast. # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: elliot # Host: agony.local # Root: /Users/emurphy/src/work/mysql-5.0-bug11567 --- 1.182/sql/log_event.cc 2005-07-05 10:01:58 -04:00 +++ 1.183/sql/log_event.cc 2005-07-18 17:47:21 -04:00 @@ -242,7 +242,7 @@ { if (*need_comma) fprintf(file,", "); - fprintf(file,"%s=%d", name, (bool)(flags & option)); + fprintf(file,"%s=%d", name, test(flags & option)); *need_comma= 1; } }