diff options
author | Andrei Elkin <aelkin@mysql.com> | 2009-02-20 13:55:43 +0200 |
---|---|---|
committer | Andrei Elkin <aelkin@mysql.com> | 2009-02-20 13:55:43 +0200 |
commit | 4712e6b9b8e61e468ee94ec65105e61881f77421 (patch) | |
tree | 82705f064568d44c461c15ebdcda8cb1e3da0d27 /mysql-test/r/mysqlbinlog.result | |
parent | c1ddc60c695e49a44555049768cb8557676840aa (diff) | |
download | mariadb-git-4712e6b9b8e61e468ee94ec65105e61881f77421.tar.gz |
Bug #37313 BINLOG Contains Incorrect server id
Signed integer format specifier forced to print the binlog header with server_id
negative if the unsigned value sets the sign-bit ON.
Fixed with correcting the specifier to correspond to typeof(server_id) == ulong.
mysql-test/r/mysqlbinlog.result:
results changed.
mysql-test/t/mysqlbinlog.test:
displaying the expected unsignedly formatted server_id value, bug#37313.
sql/log_event.cc:
Format specifier is corrected to correspond to typeof(server_id).
Diffstat (limited to 'mysql-test/r/mysqlbinlog.result')
-rw-r--r-- | mysql-test/r/mysqlbinlog.result | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/mysqlbinlog.result b/mysql-test/r/mysqlbinlog.result index 4fd87861ded..b5ac22437cd 100644 --- a/mysql-test/r/mysqlbinlog.result +++ b/mysql-test/r/mysqlbinlog.result @@ -362,4 +362,14 @@ drop table t1; 1 drop table t1; shell> mysqlbinlog std_data/corrupt-relay-bin.000624 > var/tmp/bug31793.sql +set @@global.server_id= 4294967295; +reset master; +select +(@a:=load_file("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug37313.binlog")) +is not null; +(@a:=load_file("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug37313.binlog")) +is not null +1 +*** Unsigned server_id 4294967295 is found: 1 *** +set @@global.server_id= 1; End of 5.0 tests |