--sourceinclude/have_binlog_format_row.inc--sourceinclude/have_innodb.inc## BUG#51251## The test case checks if truncating a temporary table created with# engine InnoDB will not cause the truncate statement to be binlogged.# Before patch for BUG#51251, the TRUNCATE statements below would be# binlogged, which would cause the slave to fail with "table does not# exist".CREATETABLEt1(c1int,primarykey(c1))ENGINE=InnoDB;INSERTINTOt1VALUES(1),(2),(3);CREATETEMPORARYTABLEIFNOTEXISTSt2LIKEt1;TRUNCATETABLEt2;DROPTABLEt1;--echo###############################################--echo### assertion: No event for 'TRUNCATE TABLE t2'--echo###############################################--sourceinclude/show_binlog_events.inc--echo###############################################RESETMASTER;CREATETEMPORARYTABLEt1(c1int)Engine=InnoDB;INSERTINTOt1VALUES(1),(2),(3);TRUNCATEt1;DROPTEMPORARYTABLEt1;--echo###############################################--echo### assertion: No event for 'TRUNCATE TABLE t1'--echo###############################################--sourceinclude/show_binlog_events.inc--echo###############################################