# This test is to check that using rotate_system_key when binlog is enabled and format of the binlog is statement
# generates warning that unsafe statement was written to binary log.
# restart:<hidden args>
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
CREATE TABLE t0 (a INT);
include/assert.inc [Binlog should be ON]
include/assert.inc [percona_binlog key got rotated]
INSERT INTO t0 VALUES (rotate_system_key("percona_binlog"));
Warnings:
Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave.
# restart
DROP TABLE t0;
