Commit 481ce989 authored by unknown's avatar unknown

BUG#11567 Fixed binlog tests on windows.

sql/log_event.cc:
  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.
parent c6825704
......@@ -242,7 +242,7 @@ static void print_set_option(FILE* file, uint32 bits_changed, uint32 option,
{
if (*need_comma)
fprintf(file,", ");
fprintf(file,"%s=%d", name, (bool)(flags & option));
fprintf(file,"%s=%d", name, test(flags & option));
*need_comma= 1;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment