Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/server/mysql/mysql-test/t/ |
Upload File : |
# ==== Purpose ==== # # When binlog is disabled, verify that a transaction with a specified # UUID:NUMBER can be committed successfully right after committing a # single statement 'CREATE TEMPORARY TABLE' transaction which raises # a GTID-violation flag and starts a transaction. # # ==== Implementation ==== # # 1) Set @@GLOBAL.GTID_MODE to OFF_PERMISSIVE and disable autocommit # 2) Create a temporary TABLE with SELECT to raise the GTID-violation flag # and start a transaction. # 3) Set GTID_NEXT='UUID:NUMBER' to cause an error # 'ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION' # 4) Commit the single statement transaction # # 5) Create a temporary TABLE to raise the GTID-violation flag # and start a transaction. # 6) Set GTID_NEXT='UUID:NUMBER' to cause an error # 'ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION' # 7) Commit the single statement transaction # # 8) Create a temporary TABLE LIKE other one to raise the GTID-violation flag # and start a transaction. # 9) Set GTID_NEXT='UUID:NUMBER' to cause an error # 'ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION' # 10) Commit the single statement transaction # # 11) Succeed to set GTID_NEXT='UUID:NUMBER' # 12) The next transaction can be committed successfully # with the specified UUID:NUMBER. # # 13) Drop a temporary TABLE to start a transaction. # 14) Set GTID_NEXT='UUID:NUMBER' to cause an error # 'ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION' # # ==== References ==== # # Bug #20748502 ASSERTION `THD->VARIABLES.GTID_NEXT.TYPE== ANONYMOUS_GROUP' FAILED. # mysql-test/suite/binlog/t/binlog_gtid_next_temporary_table.test --source include/not_log_bin.inc --source include/not_gtid_enabled.inc # Clean gtid_executed so that test can execute after other tests RESET MASTER; CREATE TABLE t1 (c1 INT); SET @@GLOBAL.GTID_MODE = OFF_PERMISSIVE; SET SESSION autocommit = 0; CREATE TEMPORARY TABLE Temp1 SELECT RAND(); --error ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION SET SESSION GTID_NEXT = '11111111-AAAA-2222-BBBB-000000000000:1'; COMMIT; CREATE TEMPORARY TABLE Temp2(c1 INT); --error ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION SET SESSION GTID_NEXT = '11111111-AAAA-2222-BBBB-000000000000:2'; COMMIT; CREATE TEMPORARY TABLE Temp3 LIKE Temp2; --error ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION SET SESSION GTID_NEXT = '11111111-AAAA-2222-BBBB-000000000000:3'; COMMIT; # The transaction can be committed successfully # with the specified UUID:NUMBER. SET SESSION GTID_NEXT = '11111111-AAAA-2222-BBBB-000000000000:4'; DROP TABLE t1; SET SESSION GTID_NEXT = 'automatic'; DROP TEMPORARY TABLE Temp1,Temp2,Temp3; --error ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION SET SESSION GTID_NEXT='11111111-AAAA-2222-BBBB-000000000000:5'; COMMIT; # Reset SET SESSION autocommit = 1; SET @@GLOBAL.GTID_MODE = OFF;