diff options
author | unknown <elliot@mysql.com> | 2005-07-18 17:47:26 -0400 |
---|---|---|
committer | unknown <elliot@mysql.com> | 2005-07-18 17:47:26 -0400 |
commit | 481ce989ca7ba008b1dc214019fc4ebd197a4161 (patch) | |
tree | 6ed9be992cc284ea2e6ba9368e097ee85a4cb138 | |
parent | c68257043108de5e58b7a769089036c6692b8df3 (diff) | |
download | mariadb-git-481ce989ca7ba008b1dc214019fc4ebd197a4161.tar.gz |
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.
-rw-r--r-- | sql/log_event.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 0873ee50743..90837f98d6a 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -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; } } |