Server IP : 172.67.216.182 / Your IP : 162.158.162.40 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/mysql-test/suite/binlog/r/ |
Upload File : |
include/rpl_init.inc [topology=none] SET @old_sql_notes= @@GLOBAL.SQL_NOTES; SET GLOBAL SQL_NOTES= 0; SET SESSION SQL_NOTES= 0; CALL mtr.add_suppression('Statement violates GTID consistency:'); CALL mtr.add_suppression('Unsafe statement written to the binary log'); SET GLOBAL ENFORCE_GTID_CONSISTENCY = 0; SET GLOBAL GTID_MODE = OFF_PERMISSIVE; SET GLOBAL GTID_MODE = ON_PERMISSIVE; SET GLOBAL GTID_MODE = 2; ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=ON_PERMISSIVE GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=ON_PERMISSIVE GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=ON_PERMISSIVE GTID_NEXT=GTID ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; SET GLOBAL GTID_MODE = 1; ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF_PERMISSIVE GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF_PERMISSIVE GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF_PERMISSIVE GTID_NEXT=GTID ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; SET GLOBAL GTID_MODE = 0; ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ######## ENFORCE_GTID_CONSISTENCY=OFF GTID_MODE=OFF GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=0 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; include/assert.inc [No warning or error should be generated.] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' SET GLOBAL ENFORCE_GTID_CONSISTENCY = 1; SET GLOBAL GTID_MODE = OFF_PERMISSIVE; SET GLOBAL GTID_MODE = ON_PERMISSIVE; SET GLOBAL GTID_MODE = ON; SET GLOBAL GTID_MODE = 3; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON GTID_NEXT=GTID ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; SET GLOBAL GTID_MODE = 2; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON_PERMISSIVE GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON_PERMISSIVE GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=ON_PERMISSIVE GTID_NEXT=GTID ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; SET GLOBAL GTID_MODE = 1; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF_PERMISSIVE GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF_PERMISSIVE GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF_PERMISSIVE GTID_NEXT=GTID ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; SET GLOBAL GTID_MODE = 0; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ######## ENFORCE_GTID_CONSISTENCY=ERROR GTID_MODE=OFF GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=1 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; SET GLOBAL ENFORCE_GTID_CONSISTENCY = 2; SET GLOBAL GTID_MODE = OFF_PERMISSIVE; SET GLOBAL GTID_MODE = ON_PERMISSIVE; SET GLOBAL GTID_MODE = 2; ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=ON_PERMISSIVE GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=ON_PERMISSIVE GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=ON_PERMISSIVE GTID_NEXT=GTID ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; SET GLOBAL GTID_MODE = 1; ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF_PERMISSIVE GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF_PERMISSIVE GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF_PERMISSIVE GTID_NEXT=GTID ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; BEGIN; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; Warnings: Note 1050 Table 't1' already exists SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID SET GTID_NEXT = 'GTID'; error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION DROP TEMPORARY TABLE t1; ERROR HY000: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be an Error, not a Warning.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; SET GLOBAL GTID_MODE = 0; ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF GTID_NEXT=AUTOMATIC ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=AUTOMATIC SET GTID_NEXT = 'AUTOMATIC'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 1] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' ######## ENFORCE_GTID_CONSISTENCY=WARN GTID_MODE=OFF GTID_NEXT=ANONYMOUS ######## ---- CREATE TEMPORARY in trx (InnoDB, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, BEGIN) ---- # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = InnoDB; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- CREATE TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] CREATE TEMPORARY TABLE t1 (a INT) ENGINE = MyISAM; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0 (stm) / 1 (row)] ROLLBACK; Warnings: Warning 1751 The creation of some temporary tables could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; ---- DROP TEMPORARY in trx (InnoDB, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (MyISAM, BEGIN) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; BEGIN; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] ---- DROP TEMPORARY in trx (InnoDB, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; ---- DROP TEMPORARY in trx (MyISAM, AUTOCOMMIT=0) ---- CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; # enforce_gtid_consistency=2 gtid_mode=0 gtid_next=ANONYMOUS SET GTID_NEXT = 'ANONYMOUS'; [START] DROP TEMPORARY TABLE t1; include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1] [END] DROP TEMPORARY TABLE t1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. include/assert.inc [One warning/error should be generated.] include/assert.inc [It should be a Warning, not an Error.] include/assert.inc [Text should be "violates GTID consistency"] include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 0] include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 0] ROLLBACK; Warnings: Warning 1752 Some temporary tables were dropped, but these operations could not be rolled back. SET GTID_NEXT = 'AUTOMATIC'; include/assert.inc [Both counters should be 0] SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 'test.t1' SET GLOBAL ENFORCE_GTID_CONSISTENCY = OFF; SET GLOBAL SQL_NOTES = @old_sql_notes; include/rpl_end.inc