commit 61ea6989d6b59e50cc883f07906471787597a175 Author: Laurynas Biveinis Date: Fri Jan 19 16:13:52 2018 +0200 Fix bug 89467 / PS-1816 (Redundant GTID unsafe mark for CREATE/DROP TEMPORARY TABLE in RBR/MBR) After fixing bug 72475, bug 83003, and bug 85258, CREATE TEMPORARY TABLE is only logged under statement binary log mode, and DROP TEMPORARY TABLE is only logged if the corresponding CREATE TEMPORARY TABLE has been logged. However, a corresponding enforce_gtid_consistency check in THD::is_ddl_gtid_compatible has not been relaxed accordingly. This resulted that CREATE/DROP TEMPORARY TABLE statements were forbidden incorrectly in transactional contexts, including function and trigger calls, even when they required no binary logging at all. Fix by keeping only the CREATE TEMPORARY TABLE check in THD::is_ddl_gtid_compatible and lifting its restriction for row/mixed binary log modes. For DROP TEMPORARY TABLE, since its check requires knowing the binlog format at the corresponding CREATE TEMPORARY TABLE, move it to rm_table_eval_gtid_and_table_groups_state. Also adjust ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION message to specify that it applies to statement mode only. For the testsuite, introduce new argument $gtid_violation_row_mix for enforce_gtid_consistency_statement.inc for the cases where GTID violation status for row/mixed mode differs from statement mode; split binlog_nogtid.binlog_enforce_gtid_consistency_tmp_violation testcase into statement and row/mixed versions. To track ongoing GTID violation transaction status in the middle of statement execution, new debug sync point after_mysql_rm_table specifically for DROP TABLE is introduced as the existing one "before_execute_sql_command" is hit too early for the DROP TABLE code path and there is no other common one. diff --git a/mysql-test/extra/binlog_tests/enforce_gtid_consistency_statement.inc b/mysql-test/extra/binlog_tests/enforce_gtid_consistency_statement.inc index 8bcc8023941..c26cb5e3aaf 100644 --- a/mysql-test/extra/binlog_tests/enforce_gtid_consistency_statement.inc +++ b/mysql-test/extra/binlog_tests/enforce_gtid_consistency_statement.inc @@ -91,7 +91,25 @@ if ($extra_warning_count == '') # increase, 0 otherwise. --let $expected_status= 0 --let $expected_counter= 0 -if ($gtid_violation) +--let $binlog_format= `SELECT @@GLOBAL.BINLOG_FORMAT` + +if ($binlog_format != 'STATEMENT') +{ + if ($gtid_violation_row_mix != '') + { + --let $_gtid_violation= $gtid_violation_row_mix + } + if ($gtid_violation_row_mix == '') + { + --let $_gtid_violation= $gtid_violation + } +} +if ($binlog_format == 'STATEMENT') +{ + --let $_gtid_violation= $gtid_violation +} + +if ($_gtid_violation) { --let $expected_status= $violation_result if ($violation_result != 1) @@ -99,17 +117,17 @@ if ($gtid_violation) --let $expected_counter= 1 } } +--let $_gtid_violation= if ($rpl_debug) { - --echo gtid_violation='$gtid_violation' violation_result='$violation_result' error_code='$error_code' expectation='$expected_status' statement_ends_transaction='$statement_ends_transaction' statement_ends_transaction_row_mixed='$statement_ends_transaction_row_mixed' + --echo binlog_format='$binlog_format' gtid_violation='$gtid_violation' gtid_violation_row_mix='$gtid_violation_row_mix' violation_result='$violation_result' error_code='$error_code' expectation='$expected_status' statement_ends_transaction='$statement_ends_transaction' statement_ends_transaction_row='$statement_ends_transaction_row' statement_ends_transaction_mix='$statement_ends_transaction_mix' --echo pre_statement='$pre_statement' --echo gtid_next='$gtid_next' --echo statement='$statement' } --connection $statement_connection ---let $binlog_format= `SELECT @@GLOBAL.BINLOG_FORMAT` --source include/set_gtid_next_gtid_mode_agnostic.inc if ($pre_statement != '') diff --git a/mysql-test/extra/binlog_tests/enforce_gtid_consistency_tmp_violation.test b/mysql-test/extra/binlog_tests/enforce_gtid_consistency_tmp_violation.test index 769b6a1fad6..1f23a42195b 100644 --- a/mysql-test/extra/binlog_tests/enforce_gtid_consistency_tmp_violation.test +++ b/mysql-test/extra/binlog_tests/enforce_gtid_consistency_tmp_violation.test @@ -1,7 +1,8 @@ --let $error_code= ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION ---let $error_message= Statement violates GTID consistency: CREATE TEMPORARY +--let $error_message= Statement violates GTID consistency: Under statement binary log mode CREATE TEMPORARY --let $sync_point= before_execute_sql_command --let $gtid_violation= 1 +--let $gtid_violation_row_mix= 0 # When CREATE TEMPORARY or DROP TEMPORARY occurs in the middle of a # transaction, it is a GTID-violation because these statements do not @@ -52,6 +53,7 @@ DROP TEMPORARY TABLE IF EXISTS t1; --let $statement_ends_transaction= 0 CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = InnoDB; --let $pre_statement= BEGIN +--let $sync_point= after_mysql_rm_table --let $statement= DROP TEMPORARY TABLE t1 --source extra/binlog_tests/enforce_gtid_consistency_statement.inc @@ -78,5 +80,6 @@ CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; SET AUTOCOMMIT = 0; --let $statement= DROP TEMPORARY TABLE t1 --source extra/binlog_tests/enforce_gtid_consistency_statement.inc +--let $sync_point= before_execute_sql_command SET AUTOCOMMIT = 1; DROP TEMPORARY TABLE IF EXISTS t1; diff --git a/mysql-test/extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc b/mysql-test/extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc index c6a56ad5495..e803437adf8 100644 --- a/mysql-test/extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc +++ b/mysql-test/extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc @@ -1,4 +1,10 @@ # CREATE FUNCTION USING func_or_trig_body PROVIDED BY MAIN TEST SCRIPT + +# This include file may only be run in ROW/MIXED currently (see 'This test +# cannot be run in STATEMENT mode until "Bug #22134026: ON BINLOGLESS SERVER +# ENFORCE_GTID_CONSISTENCY DOESN'T CHECK FOR ER1785,1786,1787" is fixed' +# comment at the including file + --let $header=CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 --let $begin=BEGIN --let $return=RETURN 0; @@ -7,12 +13,10 @@ --eval $cmd # USE THAT FUNCTION IN SELECT QUERY ---error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION SELECT func1(); # USE THAT FUNCTION IN SELECT QUERY IN MULTI TRANSACTION STATEMENT START TRANSACTION; ---error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION SELECT func1(); COMMIT; @@ -30,15 +34,15 @@ while ($iter <=2) --let $table=non_trans_table2 } --let $insert_cmd= INSERT INTO $table VALUES (func1()) - --error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE + --error 0, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE --eval $insert_cmd --let $update_cmd= UPDATE $table SET i=func1() - --error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE + --error 0, ER_TABLE_EXISTS_ERROR, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE --eval $update_cmd --let $delete_cmd= DELETE FROM $table WHERE i=func1() - --error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE + --error 0, ER_TABLE_EXISTS_ERROR, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE --eval $delete_cmd --inc $iter @@ -98,21 +102,21 @@ while ($iter <= 12) if (`SELECT $iter IN (1, 2, 7, 8)`) { --let $insert_cmd= INSERT INTO $table VALUES (10) - --error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE + --error 0, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE --eval $insert_cmd } if (`SELECT $iter IN (3, 4, 9, 10)`) { --let $update_cmd= UPDATE $table SET i=12 - --error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE + --error 0, ER_TABLE_EXISTS_ERROR, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE --eval $update_cmd } if (`SELECT $iter IN (5, 6, 11, 12)`) { --let $delete_cmd= DELETE FROM $table - --error ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE + --error 0, ER_TABLE_EXISTS_ERROR, ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE --eval $delete_cmd } DROP TRIGGER trigger1; diff --git a/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_multiple_warnings.result b/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_multiple_warnings.result index 048a381203f..3a93736a8f5 100644 --- a/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_multiple_warnings.result +++ b/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_multiple_warnings.result @@ -6,10 +6,10 @@ SET GLOBAL enforce_gtid_consistency=WARN; BEGIN; CREATE TEMPORARY TABLE temp1 (a INT); 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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. DROP TEMPORARY TABLE temp1; 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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. INSERT INTO t1 VALUES (1); INSERT INTO t2 VALUES (1); Warnings: diff --git a/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation_row_mix.result b/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation_row_mix.result new file mode 100644 index 00000000000..902bb6f7a03 --- /dev/null +++ b/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation_row_mix.result @@ -0,0 +1,3773 @@ +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; +[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 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 0] +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=2 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 0] +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 1 (stm) / 0 (row / mix)] +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=2 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 0] +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 0] +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=2 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 0] +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 1 (stm) / 0 (row / mix)] +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=2 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=0 gtid_mode=2 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +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 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 (stm) / 0 (row / mix)] +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=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +[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 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 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=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +[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 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 (stm) / 0 (row / mix)] +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=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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 (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 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 1 (stm) / 0 (row / mix)] +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 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 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 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 1 (stm) / 0 (row / mix)] +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; +[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 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 0] +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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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] +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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 0] +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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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] +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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=0 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 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=GTID +SET GTID_NEXT = 'GTID'; +[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 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' +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 0] +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 0] +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 0] +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 1 (stm) / 0 (row / mix)] +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 0] +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 0] +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 0] +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 1 (stm) / 0 (row / mix)] +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 0] +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 (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 0] +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 (stm) / 0 (row / mix)] +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 0] +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 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 0] +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 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 (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 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 1 (stm) / 0 (row / mix)] +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 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 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 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 1 (stm) / 0 (row / mix)] +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; +[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 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 0] +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=GTID +SET GTID_NEXT = 'GTID'; +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 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] +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=GTID +SET GTID_NEXT = 'GTID'; +[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 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 0] +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=GTID +SET GTID_NEXT = 'GTID'; +[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 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] +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=GTID +SET GTID_NEXT = 'GTID'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=0 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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=GTID +SET GTID_NEXT = 'GTID'; +[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 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 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=GTID +SET GTID_NEXT = 'GTID'; +[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 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' +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 0] +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 0] +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 0] +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 1 (stm) / 0 (row / mix)] +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 0] +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 0] +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 0] +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 1 (stm) / 0 (row / mix)] +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 0] +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 (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 0] +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 (stm) / 0 (row / mix)] +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 0] +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 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 0] +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 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 (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 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 1 (stm) / 0 (row / mix)] +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 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 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 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 1 (stm) / 0 (row / mix)] +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; +[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 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 0] +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=1 gtid_mode=3 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 0] +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 1 (stm) / 0 (row / mix)] +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=1 gtid_mode=3 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 0] +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 0] +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=1 gtid_mode=3 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 0] +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 1 (stm) / 0 (row / mix)] +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=1 gtid_mode=3 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +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 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 (stm) / 0 (row / mix)] +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=1 gtid_mode=3 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +[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 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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 gtid_mode=3 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +[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 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 (stm) / 0 (row / mix)] +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=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; +[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 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 0] +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=1 gtid_mode=3 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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] +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=1 gtid_mode=3 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 0] +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=1 gtid_mode=3 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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] +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=1 gtid_mode=3 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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=1 gtid_mode=3 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 gtid_mode=3 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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' +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; +[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 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 0] +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=1 gtid_mode=2 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 0] +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 1 (stm) / 0 (row / mix)] +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=1 gtid_mode=2 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 0] +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 0] +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=1 gtid_mode=2 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 0] +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 1 (stm) / 0 (row / mix)] +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=1 gtid_mode=2 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +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 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 (stm) / 0 (row / mix)] +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=1 gtid_mode=2 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +[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 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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 gtid_mode=2 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +[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 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 (stm) / 0 (row / mix)] +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=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; +[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 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 0] +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=1 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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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=1 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 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 0] +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=1 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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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=1 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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 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 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 1 (stm) / 0 (row / mix)] +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=1 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 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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 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 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 1 (stm) / 0 (row / mix)] +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=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; +[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 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 0] +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=1 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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] +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=1 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 0] +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=1 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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] +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=1 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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=1 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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' +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; +[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 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 0] +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=1 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 0] +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 1 (stm) / 0 (row / mix)] +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=1 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 0] +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 0] +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=1 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 0] +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 1 (stm) / 0 (row / mix)] +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=1 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 0] +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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 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 0] +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 (stm) / 0 (row / mix)] +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=1 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 0] +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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 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 0] +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 (stm) / 0 (row / mix)] +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=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; +[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 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 0] +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=1 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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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=1 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 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 0] +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=1 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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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=1 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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 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 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 1 (stm) / 0 (row / mix)] +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=1 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 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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 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 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 1 (stm) / 0 (row / mix)] +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=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; +[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 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 0] +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=1 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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] +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=1 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 0] +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=1 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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] +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=1 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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=1 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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' +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; +[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 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 0] +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=1 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 0] +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 1 (stm) / 0 (row / mix)] +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=1 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 0] +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 0] +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=1 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 0] +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 1 (stm) / 0 (row / mix)] +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=1 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 0] +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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 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 0] +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 (stm) / 0 (row / mix)] +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=1 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 0] +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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 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 0] +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 (stm) / 0 (row / mix)] +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=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; +[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 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 0] +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=1 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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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=1 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 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 0] +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=1 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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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=1 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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=1 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 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 1 (stm) / 0 (row / mix)] +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=1 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 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 in trx (MyISAM, AUTOCOMMIT=0) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +SET AUTOCOMMIT = 0; +# enforce_gtid_consistency=1 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 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 1 (stm) / 0 (row / mix)] +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 = 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; +[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 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 0] +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=2 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 0] +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 1 (stm) / 0 (row / mix)] +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=2 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 0] +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 0] +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=2 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 0] +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 1 (stm) / 0 (row / mix)] +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=2 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=2 gtid_mode=2 gtid_next=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +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 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 (stm) / 0 (row / mix)] +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=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +[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 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 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=AUTOMATIC +SET GTID_NEXT = 'AUTOMATIC'; +[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 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 (stm) / 0 (row / mix)] +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=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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 (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 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 1 (stm) / 0 (row / mix)] +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 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 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 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 1 (stm) / 0 (row / mix)] +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; +[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 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 0] +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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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] +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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 0] +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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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] +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=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=2 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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=2 gtid_mode=2 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 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=GTID +SET GTID_NEXT = 'GTID'; +[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 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' +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 0] +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 0] +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 0] +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 1 (stm) / 0 (row / mix)] +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 0] +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 0] +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 0] +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 1 (stm) / 0 (row / mix)] +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 0] +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 (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 0] +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 (stm) / 0 (row / mix)] +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 0] +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 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 0] +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 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 (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 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 1 (stm) / 0 (row / mix)] +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 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 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 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 1 (stm) / 0 (row / mix)] +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; +[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 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 0] +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=GTID +SET GTID_NEXT = 'GTID'; +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 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] +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=GTID +SET GTID_NEXT = 'GTID'; +[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 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 0] +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=GTID +SET GTID_NEXT = 'GTID'; +[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 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] +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=GTID +SET GTID_NEXT = 'GTID'; +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 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 (MyISAM, BEGIN) ---- +CREATE TEMPORARY TABLE IF NOT EXISTS t1 (a INT) ENGINE = MyISAM; +# enforce_gtid_consistency=2 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +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 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=2 gtid_mode=1 gtid_next=GTID +SET GTID_NEXT = 'GTID'; +[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 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 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=GTID +SET GTID_NEXT = 'GTID'; +[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 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' +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 0] +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 0] +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 0] +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 1 (stm) / 0 (row / mix)] +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 0] +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 0] +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 0] +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 1 (stm) / 0 (row / mix)] +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 0] +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 (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 0] +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 (stm) / 0 (row / mix)] +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 0] +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 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 0] +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 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 0] +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=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 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] +include/assert.inc [ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT should be 1 (stm) / 0 (row / mix)] +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 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 (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 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 1 (stm) / 0 (row / mix)] +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 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 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 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 1 (stm) / 0 (row / mix)] +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 diff --git a/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation.result b/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation_stm.result similarity index 76% rename from mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation.result rename to mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation_stm.result index 8b22d667982..912ea92390b 100644 --- a/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation.result +++ b/mysql-test/suite/binlog_nogtid/r/binlog_enforce_gtid_consistency_tmp_violation_stm.result @@ -15,7 +15,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -33,7 +33,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -51,7 +51,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -70,7 +70,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -90,7 +90,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -108,7 +108,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -126,7 +126,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -145,7 +145,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -307,7 +307,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -325,7 +325,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -343,7 +343,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -362,7 +362,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -382,7 +382,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -400,7 +400,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -418,7 +418,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -437,7 +437,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -744,7 +744,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -762,7 +762,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -780,7 +780,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -799,7 +799,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -819,7 +819,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -837,7 +837,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -855,7 +855,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -874,7 +874,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1186,7 +1186,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1204,7 +1204,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1222,7 +1222,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1241,7 +1241,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1261,7 +1261,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1279,7 +1279,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1297,7 +1297,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1316,7 +1316,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1334,7 +1334,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1352,7 +1352,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1370,7 +1370,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1389,7 +1389,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1409,7 +1409,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1427,7 +1427,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1445,7 +1445,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1464,7 +1464,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1483,7 +1483,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1501,7 +1501,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1519,7 +1519,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1538,7 +1538,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1558,7 +1558,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1576,7 +1576,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1594,7 +1594,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1613,7 +1613,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1631,7 +1631,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1649,7 +1649,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1667,7 +1667,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1686,7 +1686,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1706,7 +1706,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1724,7 +1724,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1742,7 +1742,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1761,7 +1761,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1779,7 +1779,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1797,7 +1797,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1815,7 +1815,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1834,7 +1834,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1854,7 +1854,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1872,7 +1872,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1890,7 +1890,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1909,7 +1909,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1928,7 +1928,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1946,7 +1946,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1964,7 +1964,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -1983,7 +1983,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2003,7 +2003,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2021,7 +2021,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2039,7 +2039,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2058,7 +2058,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2076,7 +2076,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2094,7 +2094,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2112,7 +2112,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2131,7 +2131,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2151,7 +2151,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2169,7 +2169,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2187,7 +2187,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2206,7 +2206,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2224,7 +2224,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2242,7 +2242,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2260,7 +2260,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2279,7 +2279,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2299,7 +2299,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2317,7 +2317,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2335,7 +2335,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2354,7 +2354,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2373,7 +2373,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2391,7 +2391,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2409,7 +2409,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2428,7 +2428,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2448,7 +2448,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2466,7 +2466,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2484,7 +2484,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2503,7 +2503,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2521,7 +2521,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2539,7 +2539,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2557,7 +2557,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2576,7 +2576,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2596,7 +2596,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2614,7 +2614,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2632,7 +2632,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2651,7 +2651,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2673,7 +2673,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2691,7 +2691,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2709,7 +2709,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2728,7 +2728,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2748,7 +2748,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2766,7 +2766,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2784,7 +2784,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2803,7 +2803,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2824,7 +2824,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2845,7 +2845,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2866,7 +2866,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2888,7 +2888,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2911,7 +2911,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2932,7 +2932,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2953,7 +2953,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2975,7 +2975,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -2997,7 +2997,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3015,7 +3015,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3033,7 +3033,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3052,7 +3052,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3072,7 +3072,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3090,7 +3090,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3108,7 +3108,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3127,7 +3127,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3149,7 +3149,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3170,7 +3170,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3191,7 +3191,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3213,7 +3213,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3236,7 +3236,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3257,7 +3257,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3278,7 +3278,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3300,7 +3300,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3325,7 +3325,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3346,7 +3346,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3367,7 +3367,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3389,7 +3389,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3412,7 +3412,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3433,7 +3433,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3454,7 +3454,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3476,7 +3476,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3498,7 +3498,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3516,7 +3516,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3534,7 +3534,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3553,7 +3553,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3573,7 +3573,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3591,7 +3591,7 @@ 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3609,7 +3609,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3628,7 +3628,7 @@ SET AUTOCOMMIT = 0; 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. +ERROR HY000: Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3650,7 +3650,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3671,7 +3671,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3692,7 +3692,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3714,7 +3714,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3737,7 +3737,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3758,7 +3758,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3779,7 +3779,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3801,7 +3801,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3826,7 +3826,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3847,7 +3847,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3868,7 +3868,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3890,7 +3890,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3913,7 +3913,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3934,7 +3934,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3955,7 +3955,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] @@ -3977,7 +3977,7 @@ include/assert.inc [ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT should be 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. +Warning 1787 Statement violates GTID consistency: Under statement binary log mode 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"] diff --git a/mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation_row_mix.test b/mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation_row_mix.test new file mode 100644 index 00000000000..095f8ab83fd --- /dev/null +++ b/mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation_row_mix.test @@ -0,0 +1,7 @@ +# Test sets gtid_mode explicitly so doesn't make sense to run in +# multiple combinations. +--source include/have_binlog_format_mixed_or_row.inc +--source include/no_valgrind_without_big.inc + +--let $test_file= extra/binlog_tests/enforce_gtid_consistency_tmp_violation.test +--source extra/binlog_tests/enforce_gtid_consistency.test diff --git a/mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation.test b/mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation_stm.test similarity index 84% rename from mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation.test rename to mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation_stm.test index 26db2be3c71..b579a420ca7 100644 --- a/mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation.test +++ b/mysql-test/suite/binlog_nogtid/t/binlog_enforce_gtid_consistency_tmp_violation_stm.test @@ -1,5 +1,6 @@ # Test sets gtid_mode explicitly so doesn't make sense to run in # multiple combinations. +--source include/have_binlog_format_statement.inc --source include/no_valgrind_without_big.inc --let $test_file= extra/binlog_tests/enforce_gtid_consistency_tmp_violation.test diff --git a/mysql-test/suite/rpl_gtid/r/rpl_gtid_temp_table.result b/mysql-test/suite/rpl_gtid/r/rpl_gtid_temp_table.result index 1eb6e6d55a2..4bece5dd997 100644 --- a/mysql-test/suite/rpl_gtid/r/rpl_gtid_temp_table.result +++ b/mysql-test/suite/rpl_gtid/r/rpl_gtid_temp_table.result @@ -17,23 +17,19 @@ CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS RETURN 0; END; SELECT func1(); -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. +func1() +0 START TRANSACTION; SELECT func1(); -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. +func1() +0 COMMIT; INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors DROP FUNCTION func1; CREATE TRIGGER trigger1 BEFORE INSERT ON trans_table2 FOR EACH ROW @@ -41,7 +37,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON trans_table2 FOR EACH ROW @@ -49,7 +44,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON trans_table2 FOR EACH ROW @@ -57,7 +51,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON trans_table2 FOR EACH ROW @@ -65,7 +58,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON trans_table2 FOR EACH ROW @@ -73,7 +65,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON trans_table2 FOR EACH ROW @@ -81,7 +72,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE INSERT ON non_trans_table2 FOR EACH ROW @@ -89,7 +79,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON non_trans_table2 FOR EACH ROW @@ -97,7 +86,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON non_trans_table2 FOR EACH ROW @@ -105,7 +93,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON non_trans_table2 FOR EACH ROW @@ -113,7 +100,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON non_trans_table2 FOR EACH ROW @@ -121,7 +107,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON non_trans_table2 FOR EACH ROW @@ -129,7 +114,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 BEGIN @@ -137,23 +121,19 @@ CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS RETURN 0; END; SELECT func1(); -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. +func1() +0 START TRANSACTION; SELECT func1(); -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. +func1() +0 COMMIT; INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors DROP FUNCTION func1; CREATE TRIGGER trigger1 BEFORE INSERT ON trans_table2 FOR EACH ROW @@ -161,7 +141,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON trans_table2 FOR EACH ROW @@ -169,7 +148,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON trans_table2 FOR EACH ROW @@ -177,7 +155,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON trans_table2 FOR EACH ROW @@ -185,7 +162,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON trans_table2 FOR EACH ROW @@ -193,7 +169,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON trans_table2 FOR EACH ROW @@ -201,7 +176,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE INSERT ON non_trans_table2 FOR EACH ROW @@ -209,7 +183,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON non_trans_table2 FOR EACH ROW @@ -217,7 +190,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON non_trans_table2 FOR EACH ROW @@ -225,7 +197,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON non_trans_table2 FOR EACH ROW @@ -233,7 +204,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON non_trans_table2 FOR EACH ROW @@ -241,7 +211,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON non_trans_table2 FOR EACH ROW @@ -249,247 +218,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -RETURN 0; -END; -SELECT func1(); -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. -START TRANSACTION; -SELECT func1(); -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. -COMMIT; -INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors -UPDATE trans_table2 SET i=func1(); -Got one of the listed errors -DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors -INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors -UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors -DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors -DROP FUNCTION func1; -CREATE TRIGGER trigger1 -BEFORE INSERT ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER INSERT ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE UPDATE ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -UPDATE trans_table2 SET i=12; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER UPDATE ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -UPDATE trans_table2 SET i=12; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE DELETE ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -DELETE FROM trans_table2; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER DELETE ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -DELETE FROM trans_table2; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE INSERT ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER INSERT ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE UPDATE ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -UPDATE non_trans_table2 SET i=12; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER UPDATE ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -UPDATE non_trans_table2 SET i=12; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE DELETE ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -DELETE FROM non_trans_table2; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER DELETE ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; -END; -DELETE FROM non_trans_table2; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -RETURN 0; -END; -SELECT func1(); -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. -START TRANSACTION; -SELECT func1(); -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. -COMMIT; -INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors -UPDATE trans_table2 SET i=func1(); -Got one of the listed errors -DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors -INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors -UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors -DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors -DROP FUNCTION func1; -CREATE TRIGGER trigger1 -BEFORE INSERT ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER INSERT ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE UPDATE ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -UPDATE trans_table2 SET i=12; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER UPDATE ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -UPDATE trans_table2 SET i=12; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE DELETE ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -DELETE FROM trans_table2; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER DELETE ON trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -DELETE FROM trans_table2; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE INSERT ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER INSERT ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE UPDATE ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -UPDATE non_trans_table2 SET i=12; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER UPDATE ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -UPDATE non_trans_table2 SET i=12; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -BEFORE DELETE ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -DELETE FROM non_trans_table2; -Got one of the listed errors -DROP TRIGGER trigger1; -CREATE TRIGGER trigger1 -AFTER DELETE ON non_trans_table2 FOR EACH ROW -BEGIN -CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; -END; -DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 BEGIN @@ -497,23 +225,19 @@ DROP TEMPORARY TABLE IF EXISTS tt1; RETURN 0; END; SELECT func1(); -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. +func1() +0 START TRANSACTION; SELECT func1(); -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. +func1() +0 COMMIT; INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors DROP FUNCTION func1; CREATE TRIGGER trigger1 BEFORE INSERT ON trans_table2 FOR EACH ROW @@ -521,7 +245,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON trans_table2 FOR EACH ROW @@ -529,7 +252,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON trans_table2 FOR EACH ROW @@ -537,7 +259,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON trans_table2 FOR EACH ROW @@ -545,7 +266,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON trans_table2 FOR EACH ROW @@ -553,7 +273,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON trans_table2 FOR EACH ROW @@ -561,7 +280,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE INSERT ON non_trans_table2 FOR EACH ROW @@ -569,7 +287,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON non_trans_table2 FOR EACH ROW @@ -577,7 +294,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON non_trans_table2 FOR EACH ROW @@ -585,7 +301,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON non_trans_table2 FOR EACH ROW @@ -593,7 +308,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON non_trans_table2 FOR EACH ROW @@ -601,7 +315,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON non_trans_table2 FOR EACH ROW @@ -609,7 +322,6 @@ BEGIN DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 BEGIN @@ -617,23 +329,19 @@ CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i IN RETURN 0; END; SELECT func1(); -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. +func1() +0 START TRANSACTION; SELECT func1(); -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. +func1() +0 COMMIT; INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors DROP FUNCTION func1; CREATE TRIGGER trigger1 BEFORE INSERT ON trans_table2 FOR EACH ROW @@ -641,7 +349,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON trans_table2 FOR EACH ROW @@ -649,7 +356,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON trans_table2 FOR EACH ROW @@ -657,7 +363,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON trans_table2 FOR EACH ROW @@ -665,7 +370,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON trans_table2 FOR EACH ROW @@ -673,7 +377,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON trans_table2 FOR EACH ROW @@ -681,7 +384,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE INSERT ON non_trans_table2 FOR EACH ROW @@ -689,7 +391,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON non_trans_table2 FOR EACH ROW @@ -697,7 +398,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON non_trans_table2 FOR EACH ROW @@ -705,7 +405,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON non_trans_table2 FOR EACH ROW @@ -713,7 +412,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON non_trans_table2 FOR EACH ROW @@ -721,7 +419,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON non_trans_table2 FOR EACH ROW @@ -729,7 +426,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 BEGIN @@ -737,23 +433,19 @@ INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=M RETURN 0; END; SELECT func1(); -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. +func1() +0 START TRANSACTION; SELECT func1(); -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. +func1() +0 COMMIT; INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors DROP FUNCTION func1; CREATE TRIGGER trigger1 BEFORE INSERT ON trans_table2 FOR EACH ROW @@ -761,7 +453,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON trans_table2 FOR EACH ROW @@ -769,7 +460,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON trans_table2 FOR EACH ROW @@ -777,7 +467,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON trans_table2 FOR EACH ROW @@ -785,7 +474,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON trans_table2 FOR EACH ROW @@ -793,7 +481,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON trans_table2 FOR EACH ROW @@ -801,7 +488,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE INSERT ON non_trans_table2 FOR EACH ROW @@ -809,7 +495,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON non_trans_table2 FOR EACH ROW @@ -817,7 +502,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON non_trans_table2 FOR EACH ROW @@ -825,7 +509,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON non_trans_table2 FOR EACH ROW @@ -833,7 +516,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON non_trans_table2 FOR EACH ROW @@ -841,7 +523,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON non_trans_table2 FOR EACH ROW @@ -849,7 +530,6 @@ BEGIN INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 BEGIN @@ -857,23 +537,19 @@ INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGI RETURN 0; END; SELECT func1(); -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. +func1() +0 START TRANSACTION; SELECT func1(); -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. +func1() +0 COMMIT; INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors DROP FUNCTION func1; CREATE TRIGGER trigger1 BEFORE INSERT ON trans_table2 FOR EACH ROW @@ -881,7 +557,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON trans_table2 FOR EACH ROW @@ -889,7 +564,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON trans_table2 FOR EACH ROW @@ -897,7 +571,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON trans_table2 FOR EACH ROW @@ -905,7 +578,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON trans_table2 FOR EACH ROW @@ -913,7 +585,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON trans_table2 FOR EACH ROW @@ -921,7 +592,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE INSERT ON non_trans_table2 FOR EACH ROW @@ -929,7 +599,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON non_trans_table2 FOR EACH ROW @@ -937,7 +606,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON non_trans_table2 FOR EACH ROW @@ -945,7 +613,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON non_trans_table2 FOR EACH ROW @@ -953,7 +620,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON non_trans_table2 FOR EACH ROW @@ -961,7 +627,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON non_trans_table2 FOR EACH ROW @@ -969,7 +634,6 @@ BEGIN INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 BEGIN @@ -977,23 +641,19 @@ CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS RETURN 0; END; SELECT func1(); -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. +func1() +0 START TRANSACTION; SELECT func1(); -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. +func1() +0 COMMIT; INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors DROP FUNCTION func1; CREATE TRIGGER trigger1 BEFORE INSERT ON trans_table2 FOR EACH ROW @@ -1001,7 +661,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON trans_table2 FOR EACH ROW @@ -1009,7 +668,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON trans_table2 FOR EACH ROW @@ -1017,7 +675,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON trans_table2 FOR EACH ROW @@ -1025,7 +682,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON trans_table2 FOR EACH ROW @@ -1033,7 +689,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON trans_table2 FOR EACH ROW @@ -1041,7 +696,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE INSERT ON non_trans_table2 FOR EACH ROW @@ -1049,7 +703,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON non_trans_table2 FOR EACH ROW @@ -1057,7 +710,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON non_trans_table2 FOR EACH ROW @@ -1065,7 +717,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON non_trans_table2 FOR EACH ROW @@ -1073,7 +724,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON non_trans_table2 FOR EACH ROW @@ -1081,7 +731,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON non_trans_table2 FOR EACH ROW @@ -1089,7 +738,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE FUNCTION func1 () RETURNS varchar(30) CHARSET utf8 BEGIN @@ -1097,23 +745,19 @@ CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS RETURN 0; END; SELECT func1(); -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. +func1() +0 START TRANSACTION; SELECT func1(); -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. +func1() +0 COMMIT; INSERT INTO trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM trans_table2 WHERE i=func1(); -Got one of the listed errors INSERT INTO non_trans_table2 VALUES (func1()); -Got one of the listed errors UPDATE non_trans_table2 SET i=func1(); -Got one of the listed errors DELETE FROM non_trans_table2 WHERE i=func1(); -Got one of the listed errors DROP FUNCTION func1; CREATE TRIGGER trigger1 BEFORE INSERT ON trans_table2 FOR EACH ROW @@ -1121,7 +765,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON trans_table2 FOR EACH ROW @@ -1129,7 +772,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; INSERT INTO trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON trans_table2 FOR EACH ROW @@ -1137,7 +779,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON trans_table2 FOR EACH ROW @@ -1145,7 +786,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; UPDATE trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON trans_table2 FOR EACH ROW @@ -1153,7 +793,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON trans_table2 FOR EACH ROW @@ -1161,7 +800,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; DELETE FROM trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE INSERT ON non_trans_table2 FOR EACH ROW @@ -1169,7 +807,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER INSERT ON non_trans_table2 FOR EACH ROW @@ -1177,7 +814,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; INSERT INTO non_trans_table2 VALUES (10); -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE UPDATE ON non_trans_table2 FOR EACH ROW @@ -1185,7 +821,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER UPDATE ON non_trans_table2 FOR EACH ROW @@ -1193,7 +828,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; UPDATE non_trans_table2 SET i=12; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 BEFORE DELETE ON non_trans_table2 FOR EACH ROW @@ -1201,7 +835,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; CREATE TRIGGER trigger1 AFTER DELETE ON non_trans_table2 FOR EACH ROW @@ -1209,7 +842,6 @@ BEGIN CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); END; DELETE FROM non_trans_table2; -Got one of the listed errors DROP TRIGGER trigger1; include/sync_slave_sql_with_master.inc [connection master] diff --git a/mysql-test/suite/rpl_gtid/t/rpl_gtid_temp_table.test b/mysql-test/suite/rpl_gtid/t/rpl_gtid_temp_table.test index b0e7435b4a4..202339e9f34 100644 --- a/mysql-test/suite/rpl_gtid/t/rpl_gtid_temp_table.test +++ b/mysql-test/suite/rpl_gtid/t/rpl_gtid_temp_table.test @@ -16,10 +16,10 @@ # 3) Server should throw error in all the cases. ############################################################################### -# This test cannot be run in STATEMENT/MIXED mode until +# This test cannot be run in STATEMENT mode until # "Bug #22134026: ON BINLOGLESS SERVER ENFORCE_GTID_CONSISTENCY DOESN'T CHECK # FOR ER1785,1786,1787" is fixed. ---source include/have_binlog_format_row.inc +--source include/have_binlog_format_mixed_or_row.inc --source include/master-slave.inc # Initial Setup CREATE TABLE trans_table1 (i INT) ENGINE=INNODB; @@ -42,35 +42,27 @@ INSERT INTO non_trans_table2 VALUES (1); --let $func_or_trig_body=CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; --source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc -# Case 3: Function/Trigger with just create non trans temp table ---let $func_or_trig_body=CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; ---source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc - -# Case 4: Function/Trigger with just create trans temp table ---let $func_or_trig_body=CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; ---source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc - -# Case 5: Function/Trigger with just drop temp table +# Case 3: Function/Trigger with just drop temp table --let $func_or_trig_body=DROP TEMPORARY TABLE IF EXISTS tt1; --source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc -# Case 6: Function/Trigger with two create/drop temp tables +# Case 4: Function/Trigger with two create/drop temp tables --let $func_or_trig_body=CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; CREATE TEMPORARY TABLE tt2(i INT) ENGINE=Innodb; DROP TEMPORARY TABLE IF EXISTS tt1; DROP TEMPORARY TABLE IF EXISTS tt2; --source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc -# Case 7: Function/Trigger with DML operation on trans table followed by create/drop temp table +# Case 5: Function/Trigger with DML operation on trans table followed by create/drop temp table --let $func_or_trig_body=INSERT INTO trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; --source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc -# Case 8: Function/Trigger with DML operation on non trans table followed by create/drop temp table +# Case 6: Function/Trigger with DML operation on non trans table followed by create/drop temp table --let $func_or_trig_body=INSERT INTO non_trans_table1 VALUES (12); CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; --source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc -# Case 9: Function/Trigger with DML operation on trans table after create/drop temp table queries +# Case 7: Function/Trigger with DML operation on trans table after create/drop temp table queries --let $func_or_trig_body=CREATE TEMPORARY TABLE tt1(i INT) ENGINE=INNODB; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO non_trans_table1 VALUES (12); --source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc -# Case 10: Function/Trigger with DML operation on non trans table after create/drop temp table queries +# Case 8: Function/Trigger with DML operation on non trans table after create/drop temp table queries --let $func_or_trig_body=CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12); --source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc diff --git a/share/errmsg-utf8.txt b/share/errmsg-utf8.txt index 3fd408c8d1e..b8ce3487b2b 100644 --- a/share/errmsg-utf8.txt +++ b/share/errmsg-utf8.txt @@ -6759,7 +6759,7 @@ ER_GTID_UNSAFE_CREATE_SELECT eng "Statement violates GTID consistency: CREATE TABLE ... SELECT." ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION - eng "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." + eng "Statement violates GTID consistency: Under statement binary log mode 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." ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME eng "The value of @@GLOBAL.GTID_MODE can only be changed one step at a time: OFF <-> OFF_PERMISSIVE <-> ON_PERMISSIVE <-> ON. Also note that this value must be stepped up or down simultaneously on all servers. See the Manual for instructions." diff --git a/sql/binlog.cc b/sql/binlog.cc index fd4586d5fc7..99f8773005b 100644 --- a/sql/binlog.cc +++ b/sql/binlog.cc @@ -11286,7 +11286,7 @@ int THD::decide_logging_format(TABLE_LIST *tables) @retval false Error was generated. @retval true No error was generated (possibly a warning was generated). */ -static bool handle_gtid_consistency_violation(THD *thd, int error_code) +bool handle_gtid_consistency_violation(THD *thd, int error_code) { DBUG_ENTER("handle_gtid_consistency_violation"); @@ -11410,17 +11410,17 @@ bool THD::is_ddl_gtid_compatible() DBUG_RETURN(ret); } else if ((lex->sql_command == SQLCOM_CREATE_TABLE && - (lex->create_info->options & HA_LEX_CREATE_TMP_TABLE) != 0) || - (lex->sql_command == SQLCOM_DROP_TABLE && lex->drop_temporary)) + (lex->create_info->options & HA_LEX_CREATE_TMP_TABLE) != 0)) { /* - [CREATE|DROP] TEMPORARY TABLE is unsafe to execute - inside a transaction because the table will stay and the - transaction will be written to the slave's binary log with the - GTID even if the transaction is rolled back. - This includes the execution inside Functions and Triggers. + In statement binary log format, CREATE TEMPORARY TABLE is unsafe + to execute inside a transaction because the table will stay and the + transaction will be written to the slave's binary log with the GTID even + if the transaction is rolled back. This includes the execution inside + functions and triggers. */ - if (in_multi_stmt_transaction_mode() || in_sub_stmt) + if ((in_multi_stmt_transaction_mode() || in_sub_stmt) + && variables.binlog_format == BINLOG_FORMAT_STMT) { bool ret= handle_gtid_consistency_violation( this, ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION); diff --git a/sql/binlog.h b/sql/binlog.h index 6a06634a593..c46b1ddd465 100644 --- a/sql/binlog.h +++ b/sql/binlog.h @@ -989,6 +989,9 @@ bool binlog_enabled(); void register_binlog_handler(THD *thd, bool trx); int query_error_code(THD *thd, bool not_killed); +bool handle_gtid_consistency_violation(THD *thd, int error_code) +MY_ATTRIBUTE((warn_unused_result)); + extern const char *log_bin_index; extern const char *log_bin_basename; extern bool opt_binlog_order_commits; diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 45b68c718e4..ea714c3fdf3 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -3509,6 +3509,7 @@ mysql_execute_command(THD *thd, bool first_level) /* DDL and binlog write order are protected by metadata locks. */ res= mysql_rm_table(thd, first_table, lex->drop_if_exists, lex->drop_temporary); + DEBUG_SYNC(thd, "after_mysql_rm_table"); /* when dropping temporary tables if @@session_track_state_change is ON then send the boolean tracker in the OK packet */ if(!res && lex->drop_temporary) diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 57d3a7eac26..6e3ac1fdd33 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2080,6 +2080,24 @@ rm_table_sort_into_groups(THD *thd, Drop_tables_ctx *drop_ctx, static bool rm_table_eval_gtid_and_table_groups_state(THD *thd, Drop_tables_ctx *drop_ctx) { + if ((drop_ctx->has_tmp_trans_tables_to_binlog() + || drop_ctx->has_tmp_non_trans_tables_to_binlog()) + && drop_ctx->drop_temporary + && (thd->in_multi_stmt_transaction_mode() || thd->in_sub_stmt)) + { + /* + In statement binary log format, DROP TEMPORARY TABLE is unsafe + to execute inside a transaction because the table will be dropped and the + transaction will be written to the slave's binary log with the GTID even + if the transaction is rolled back. This includes the execution inside + functions and triggers. + */ + const bool ret= handle_gtid_consistency_violation( + thd, ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION); + if (!ret) + return true; + } + if (thd->variables.gtid_next.type == GTID_GROUP) { /*