mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
27 lines
719 B
Text
27 lines
719 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
CALL mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT');
|
|
CREATE TABLE t1 (a VARCHAR(1000));
|
|
INSERT INTO t1 VALUES (CONNECTION_ID());
|
|
connection master1;
|
|
INSERT INTO t1 VALUES (CONNECTION_ID());
|
|
INSERT INTO t1 VALUES
|
|
(CURDATE()),
|
|
(CURRENT_DATE()),
|
|
(CURRENT_TIME()),
|
|
(CURRENT_TIMESTAMP()),
|
|
(CURTIME()),
|
|
(LOCALTIME()),
|
|
(LOCALTIMESTAMP()),
|
|
(NOW()),
|
|
(UNIX_TIMESTAMP()),
|
|
(UTC_DATE()),
|
|
(UTC_TIME()),
|
|
(UTC_TIMESTAMP());
|
|
INSERT INTO t1 VALUES (RAND());
|
|
INSERT INTO t1 VALUES (LAST_INSERT_ID());
|
|
connection slave;
|
|
include/diff_tables.inc [master:t1, slave:t1]
|
|
connection master;
|
|
DROP TABLE t1;
|
|
include/rpl_end.inc
|