1SET GLOBAL log_bin_compress=on; 2SET GLOBAL log_bin_compress_min_len=10; 3CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1)); 4CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1)); 5INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, ""); 6INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL); 7INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A"); 8INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A"); 9INSERT INTO t2 SELECT * FROM t1; 10UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL; 11DELETE FROM t1; 12DELETE FROM t2; 13FLUSH BINARY LOGS; 14/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/; 15/*!40019 SET @@session.max_insert_delayed_threads=0*/; 16/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; 17DELIMITER /*!*/; 18# at 4 19#<date> server id 1 end_log_pos 256 CRC32 XXX Start: xxx 20ROLLBACK/*!*/; 21# at 256 22#<date> server id 1 end_log_pos 285 CRC32 XXX Gtid list [] 23# at 285 24#<date> server id 1 end_log_pos 329 CRC32 XXX Binlog checkpoint master-bin.000001 25# at 329 26#<date> server id 1 end_log_pos 371 CRC32 XXX GTID 0-1-1 ddl 27/*!100101 SET @@session.skip_parallel_replication=0*//*!*/; 28/*!100001 SET @@session.gtid_domain_id=0*//*!*/; 29/*!100001 SET @@session.server_id=1*//*!*/; 30/*!100001 SET @@session.gtid_seq_no=1*//*!*/; 31# at 371 32#<date> server id 1 end_log_pos 533 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 33use `test`/*!*/; 34SET TIMESTAMP=X/*!*/; 35SET @@session.pseudo_thread_id=5/*!*/; 36SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/; 37SET @@session.sql_mode=#/*!*/; 38SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/; 39/*!\C latin1 *//*!*/; 40SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=#/*!*/; 41SET @@session.lc_time_names=0/*!*/; 42SET @@session.collation_database=DEFAULT/*!*/; 43CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1)) 44/*!*/; 45# at 533 46#<date> server id 1 end_log_pos 575 CRC32 XXX GTID 0-1-2 ddl 47/*!100001 SET @@session.gtid_seq_no=2*//*!*/; 48# at 575 49#<date> server id 1 end_log_pos 727 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 50SET TIMESTAMP=X/*!*/; 51CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1)) 52/*!*/; 53# at 727 54#<date> server id 1 end_log_pos 769 CRC32 XXX GTID 0-1-3 55/*!100001 SET @@session.gtid_seq_no=3*//*!*/; 56START TRANSACTION 57/*!*/; 58# at 769 59# at 843 60#<date> server id 1 end_log_pos 843 CRC32 XXX Annotate_rows: 61#Q> INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "") 62#<date> server id 1 end_log_pos 899 CRC32 XXX Table_map: `test`.`t1` mapped to number num 63# at 899 64#<date> server id 1 end_log_pos 967 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F 65### INSERT INTO `test`.`t1` 66### SET 67### @1=10 /* INT meta=0 nullable=0 is_null=0 */ 68### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 69### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 70### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */ 71### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 72### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */ 73### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 74### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 75### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 76# Number of rows: 1 77# at 967 78#<date> server id 1 end_log_pos 1040 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 79SET TIMESTAMP=X/*!*/; 80COMMIT 81/*!*/; 82# at 1040 83#<date> server id 1 end_log_pos 1082 CRC32 XXX GTID 0-1-4 84/*!100001 SET @@session.gtid_seq_no=4*//*!*/; 85START TRANSACTION 86/*!*/; 87# at 1082 88# at 1158 89#<date> server id 1 end_log_pos 1158 CRC32 XXX Annotate_rows: 90#Q> INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL) 91#<date> server id 1 end_log_pos 1214 CRC32 XXX Table_map: `test`.`t1` mapped to number num 92# at 1214 93#<date> server id 1 end_log_pos 1281 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F 94### INSERT INTO `test`.`t1` 95### SET 96### @1=11 /* INT meta=0 nullable=0 is_null=0 */ 97### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 98### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 99### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */ 100### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 101### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */ 102### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 103### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 104### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */ 105# Number of rows: 1 106# at 1281 107#<date> server id 1 end_log_pos 1354 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 108SET TIMESTAMP=X/*!*/; 109COMMIT 110/*!*/; 111# at 1354 112#<date> server id 1 end_log_pos 1396 CRC32 XXX GTID 0-1-5 113/*!100001 SET @@session.gtid_seq_no=5*//*!*/; 114START TRANSACTION 115/*!*/; 116# at 1396 117# at 1474 118#<date> server id 1 end_log_pos 1474 CRC32 XXX Annotate_rows: 119#Q> INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A") 120#<date> server id 1 end_log_pos 1530 CRC32 XXX Table_map: `test`.`t1` mapped to number num 121# at 1530 122#<date> server id 1 end_log_pos 1596 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F 123### INSERT INTO `test`.`t1` 124### SET 125### @1=12 /* INT meta=0 nullable=0 is_null=0 */ 126### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 127### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 128### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */ 129### @5=NULL /* MEDIUMINT meta=0 nullable=1 is_null=1 */ 130### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */ 131### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 132### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 133### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 134# Number of rows: 1 135# at 1596 136#<date> server id 1 end_log_pos 1669 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 137SET TIMESTAMP=X/*!*/; 138COMMIT 139/*!*/; 140# at 1669 141#<date> server id 1 end_log_pos 1711 CRC32 XXX GTID 0-1-6 142/*!100001 SET @@session.gtid_seq_no=6*//*!*/; 143START TRANSACTION 144/*!*/; 145# at 1711 146# at 1786 147#<date> server id 1 end_log_pos 1786 CRC32 XXX Annotate_rows: 148#Q> INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A") 149#<date> server id 1 end_log_pos 1842 CRC32 XXX Table_map: `test`.`t1` mapped to number num 150# at 1842 151#<date> server id 1 end_log_pos 1909 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F 152### INSERT INTO `test`.`t1` 153### SET 154### @1=13 /* INT meta=0 nullable=0 is_null=0 */ 155### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 156### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 157### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */ 158### @5=0 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 159### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */ 160### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 161### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 162### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 163# Number of rows: 1 164# at 1909 165#<date> server id 1 end_log_pos 1982 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 166SET TIMESTAMP=X/*!*/; 167COMMIT 168/*!*/; 169# at 1982 170#<date> server id 1 end_log_pos 2024 CRC32 XXX GTID 0-1-7 171/*!100001 SET @@session.gtid_seq_no=7*//*!*/; 172START TRANSACTION 173/*!*/; 174# at 2024 175# at 2078 176#<date> server id 1 end_log_pos 2078 CRC32 XXX Annotate_rows: 177#Q> INSERT INTO t2 SELECT * FROM t1 178#<date> server id 1 end_log_pos 2134 CRC32 XXX Table_map: `test`.`t2` mapped to number num 179# at 2134 180#<date> server id 1 end_log_pos 2225 CRC32 XXX Write_compressed_rows: table id 33 flags: STMT_END_F 181### INSERT INTO `test`.`t2` 182### SET 183### @1=10 /* INT meta=0 nullable=0 is_null=0 */ 184### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 185### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 186### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 187### @5=4 /* INT meta=0 nullable=1 is_null=0 */ 188### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 189### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 190### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 191### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 192### INSERT INTO `test`.`t2` 193### SET 194### @1=11 /* INT meta=0 nullable=0 is_null=0 */ 195### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 196### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 197### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 198### @5=4 /* INT meta=0 nullable=1 is_null=0 */ 199### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 200### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 201### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 202### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */ 203### INSERT INTO `test`.`t2` 204### SET 205### @1=12 /* INT meta=0 nullable=0 is_null=0 */ 206### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 207### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 208### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 209### @5=NULL /* INT meta=0 nullable=1 is_null=1 */ 210### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 211### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 212### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 213### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 214### INSERT INTO `test`.`t2` 215### SET 216### @1=13 /* INT meta=0 nullable=0 is_null=0 */ 217### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 218### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 219### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 220### @5=0 /* INT meta=0 nullable=1 is_null=0 */ 221### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 222### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 223### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 224### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 225# Number of rows: 4 226# at 2225 227#<date> server id 1 end_log_pos 2298 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 228SET TIMESTAMP=X/*!*/; 229COMMIT 230/*!*/; 231# at 2298 232#<date> server id 1 end_log_pos 2340 CRC32 XXX GTID 0-1-8 233/*!100001 SET @@session.gtid_seq_no=8*//*!*/; 234START TRANSACTION 235/*!*/; 236# at 2340 237# at 2406 238#<date> server id 1 end_log_pos 2406 CRC32 XXX Annotate_rows: 239#Q> UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL 240#<date> server id 1 end_log_pos 2462 CRC32 XXX Table_map: `test`.`t2` mapped to number num 241# at 2462 242#<date> server id 1 end_log_pos 2561 CRC32 XXX Update_compressed_rows: table id 33 flags: STMT_END_F 243### UPDATE `test`.`t2` 244### WHERE 245### @1=10 /* INT meta=0 nullable=0 is_null=0 */ 246### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 247### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 248### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 249### @5=4 /* INT meta=0 nullable=1 is_null=0 */ 250### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 251### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 252### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 253### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 254### SET 255### @1=10 /* INT meta=0 nullable=0 is_null=0 */ 256### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 257### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 258### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 259### @5=5 /* INT meta=0 nullable=1 is_null=0 */ 260### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 261### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 262### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 263### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 264### UPDATE `test`.`t2` 265### WHERE 266### @1=11 /* INT meta=0 nullable=0 is_null=0 */ 267### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 268### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 269### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 270### @5=4 /* INT meta=0 nullable=1 is_null=0 */ 271### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 272### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 273### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 274### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */ 275### SET 276### @1=11 /* INT meta=0 nullable=0 is_null=0 */ 277### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 278### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 279### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 280### @5=5 /* INT meta=0 nullable=1 is_null=0 */ 281### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 282### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 283### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 284### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */ 285### UPDATE `test`.`t2` 286### WHERE 287### @1=12 /* INT meta=0 nullable=0 is_null=0 */ 288### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 289### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 290### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 291### @5=NULL /* INT meta=0 nullable=1 is_null=1 */ 292### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 293### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 294### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 295### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 296### SET 297### @1=12 /* INT meta=0 nullable=0 is_null=0 */ 298### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 299### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 300### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 301### @5=5 /* INT meta=0 nullable=1 is_null=0 */ 302### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 303### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 304### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 305### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 306# Number of rows: 3 307# at 2561 308#<date> server id 1 end_log_pos 2634 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 309SET TIMESTAMP=X/*!*/; 310COMMIT 311/*!*/; 312# at 2634 313#<date> server id 1 end_log_pos 2676 CRC32 XXX GTID 0-1-9 314/*!100001 SET @@session.gtid_seq_no=9*//*!*/; 315START TRANSACTION 316/*!*/; 317# at 2676 318# at 2713 319#<date> server id 1 end_log_pos 2713 CRC32 XXX Annotate_rows: 320#Q> DELETE FROM t1 321#<date> server id 1 end_log_pos 2769 CRC32 XXX Table_map: `test`.`t1` mapped to number num 322# at 2769 323#<date> server id 1 end_log_pos 2861 CRC32 XXX Delete_compressed_rows: table id 32 flags: STMT_END_F 324### DELETE FROM `test`.`t1` 325### WHERE 326### @1=10 /* INT meta=0 nullable=0 is_null=0 */ 327### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 328### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 329### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */ 330### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 331### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */ 332### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 333### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 334### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 335### DELETE FROM `test`.`t1` 336### WHERE 337### @1=11 /* INT meta=0 nullable=0 is_null=0 */ 338### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 339### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 340### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */ 341### @5=4 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 342### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */ 343### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 344### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 345### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */ 346### DELETE FROM `test`.`t1` 347### WHERE 348### @1=12 /* INT meta=0 nullable=0 is_null=0 */ 349### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 350### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 351### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */ 352### @5=NULL /* MEDIUMINT meta=0 nullable=1 is_null=1 */ 353### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */ 354### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 355### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 356### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 357### DELETE FROM `test`.`t1` 358### WHERE 359### @1=13 /* INT meta=0 nullable=0 is_null=0 */ 360### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 361### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 362### @4=3 /* TINYINT meta=0 nullable=1 is_null=0 */ 363### @5=0 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 364### @6=5 /* LONGINT meta=0 nullable=1 is_null=0 */ 365### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 366### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 367### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 368# Number of rows: 4 369# at 2861 370#<date> server id 1 end_log_pos 2934 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 371SET TIMESTAMP=X/*!*/; 372COMMIT 373/*!*/; 374# at 2934 375#<date> server id 1 end_log_pos 2976 CRC32 XXX GTID 0-1-10 376/*!100001 SET @@session.gtid_seq_no=10*//*!*/; 377START TRANSACTION 378/*!*/; 379# at 2976 380# at 3013 381#<date> server id 1 end_log_pos 3013 CRC32 XXX Annotate_rows: 382#Q> DELETE FROM t2 383#<date> server id 1 end_log_pos 3069 CRC32 XXX Table_map: `test`.`t2` mapped to number num 384# at 3069 385#<date> server id 1 end_log_pos 3154 CRC32 XXX Delete_compressed_rows: table id 33 flags: STMT_END_F 386### DELETE FROM `test`.`t2` 387### WHERE 388### @1=10 /* INT meta=0 nullable=0 is_null=0 */ 389### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 390### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 391### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 392### @5=5 /* INT meta=0 nullable=1 is_null=0 */ 393### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 394### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 395### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 396### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 397### DELETE FROM `test`.`t2` 398### WHERE 399### @1=11 /* INT meta=0 nullable=0 is_null=0 */ 400### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 401### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 402### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 403### @5=5 /* INT meta=0 nullable=1 is_null=0 */ 404### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 405### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 406### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 407### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */ 408### DELETE FROM `test`.`t2` 409### WHERE 410### @1=12 /* INT meta=0 nullable=0 is_null=0 */ 411### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 412### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 413### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 414### @5=5 /* INT meta=0 nullable=1 is_null=0 */ 415### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 416### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 417### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 418### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 419### DELETE FROM `test`.`t2` 420### WHERE 421### @1=13 /* INT meta=0 nullable=0 is_null=0 */ 422### @2=1 /* INT meta=0 nullable=1 is_null=0 */ 423### @3=2 /* INT meta=0 nullable=1 is_null=0 */ 424### @4=3 /* INT meta=0 nullable=1 is_null=0 */ 425### @5=0 /* INT meta=0 nullable=1 is_null=0 */ 426### @6=5 /* MEDIUMINT meta=0 nullable=1 is_null=0 */ 427### @7=6 /* INT meta=0 nullable=1 is_null=0 */ 428### @8=7 /* INT meta=0 nullable=1 is_null=0 */ 429### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */ 430# Number of rows: 4 431# at 3154 432#<date> server id 1 end_log_pos 3227 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 433SET TIMESTAMP=X/*!*/; 434COMMIT 435/*!*/; 436# at 3227 437#<date> server id 1 end_log_pos 3275 CRC32 XXX Rotate to master-bin.000002 pos: 4 438DELIMITER ; 439# End of log file 440ROLLBACK /* added by mysqlbinlog */; 441/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; 442/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; 443 444Test mysqlbinlog | mysql type point-in-time recovery with compressed events. 445 446FLUSH BINARY LOGS; 447CREATE TABLE t3 (a INT PRIMARY KEY, b INT, c VARCHAR(100)); 448INSERT INTO t3 VALUES (0, 10, "hello"); 449BEGIN; 450INSERT INTO t3 VALUES (1, 10, "cat"), (2, 10, "mouse"), (3, 10, "dog"); 451INSERT INTO t3 VALUES (4, 10, "goodbye"); 452COMMIT; 453UPDATE t3 SET b=b+100 where a<>1; 454DELETE FROM t3 WHERE a=2; 455SET @old_image=@@binlog_row_image; 456SET binlog_row_image=minimal; 457INSERT INTO t3 VALUES (5, 20, "red"), (6, 30, "green"), (7, 40, "blue"); 458INSERT INTO t3 VALUES (8, 20, "rigel"); 459UPDATE t3 SET c = concat("colour of ", c) WHERE a > 5; 460UPDATE t3 SET b=b*2 WHERE a IN (5,6,7); 461DELETE FROM t3 WHERE a=6; 462SET binlog_row_image=@old_image; 463SELECT * FROM t3 ORDER BY a; 464a b c 4650 110 hello 4661 10 cat 4673 110 dog 4684 110 goodbye 4695 40 red 4707 80 colour of blue 4718 20 colour of rigel 472FLUSH LOGS; 473DROP TABLE t3; 474SELECT * FROM t3 ORDER BY a; 475a b c 4760 110 hello 4771 10 cat 4783 110 dog 4794 110 goodbye 4805 40 red 4817 80 colour of blue 4828 20 colour of rigel 483DROP TABLE t1,t2,t3; 484SET GLOBAL log_bin_compress=off; 485SET GLOBAL log_bin_compress_min_len=256; 486