Server IP : 172.67.216.182 / Your IP : 162.158.108.76 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/binlog/r/ |
Upload File : |
CREATE TABLE log ( c1 INT AUTO_INCREMENT PRIMARY KEY, c2 TEXT, c3 INT NOT NULL DEFAULT 0); RESET MASTER; # 1 - Empty transaction SET GTID_NEXT='SERVER_UUID:1'; BEGIN; COMMIT; SET GTID_NEXT=AUTOMATIC; # 2 and 3 - XA SBR + XA COMMIT XA START 'a'; INSERT INTO log (c2) VALUES ('XA COMMIT'); XA END 'a'; XA PREPARE 'a'; XA COMMIT 'a'; # 4 and 5 - XA SBR + XA ROLLBACK XA START 'b'; INSERT INTO log (c2) VALUES ('XA ROLLBACK'); XA END 'b'; XA PREPARE 'b'; XA ROLLBACK 'b'; # 6 - Atomic DDL CREATE TABLE t1 (c1 INT); # 7 - non-atomic DDL CREATE TABLE t2 (c1 INT); # 8 - SBR only DML transaction BEGIN; INSERT INTO log (c2) VALUES ('SBR only DML transaction'); COMMIT; # 9 - SBR and RBR DML transaction BEGIN; INSERT INTO log (c2) VALUES ('SBR and RBR DML transaction'); INSERT INTO log (c2, c3) VALUES ('SBR and RBR DML transaction', RAND()*100); COMMIT; # 10 - RBR only DML transaction BEGIN; INSERT INTO log (c2, c3) VALUES ('RBR only DML transaction', RAND()*100); COMMIT; # 11 - RBR only DML transaction with SAVEPOINT BEGIN; INSERT INTO log (c2, c3) VALUES ('RBR only DML transaction with SAVEPOINT', RAND()*100); SAVEPOINT `a`; INSERT INTO log (c2, c3) VALUES ('RBR only DML transaction with SAVEPOINT', RAND()*100); SAVEPOINT `b`; INSERT INTO log (c2, c3) VALUES ('RBR only DML transaction with SAVEPOINT', RAND()*100); COMMIT; # 12 - RBR only DML with rows query info SET @@SESSION.binlog_rows_query_log_events = ON; BEGIN; INSERT INTO log (c2, c3) VALUES ('DML with rows query info', RAND()*100); COMMIT; SET @@SESSION.binlog_rows_query_log_events = OFF; include/include/assert_rbr_only_flags.inc [no,yes,no,yes,no,no,no,no,no,yes,yes,yes] DROP TABLE t1, t2, log;