Server IP : 172.67.216.182 / Your IP : 162.158.170.174 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/sys_vars/r/ |
Upload File : |
'#--------------------FN_DYNVARS_046_01-------------------------#' SET @@global.innodb_support_xa = OFF; Warnings: Warning 131 Using innodb_support_xa is deprecated and the parameter may be removed in future releases. Only innodb_support_xa=ON is allowed. 'connect (con1,localhost,root,,,,)' 'connection con1' SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 1 SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 1 '#--------------------FN_DYNVARS_046_01-------------------------#' 'connection default' SET @@global.innodb_support_xa = 1; Warnings: Warning 131 Using innodb_support_xa is deprecated and the parameter may be removed in future releases. drop table if exists t1, t2; create table t1 (a int) engine=innodb; '---check when innodb_support_xa is 1---' SET @@innodb_support_xa = 1; Warnings: Warning 131 Using innodb_support_xa is deprecated and the parameter may be removed in future releases. xa start 'test1'; INSERT t1 values (10); xa end 'test1'; xa prepare 'test1'; xa rollback 'test1'; SELECT * from t1; a '---check when innodb_support_xa is 0---' SET @@innodb_support_xa = 0; Warnings: Warning 131 Using innodb_support_xa is deprecated and the parameter may be removed in future releases. Only innodb_support_xa=ON is allowed. xa start 'test1'; INSERT t1 values (10); xa end 'test1'; xa prepare 'test1'; xa rollback 'test1'; SELECT * from t1; a '------general xa testing--------' SET @@global.innodb_support_xa = 1; Warnings: Warning 131 Using innodb_support_xa is deprecated and the parameter may be removed in future releases. SET @@innodb_support_xa = 1; Warnings: Warning 131 Using innodb_support_xa is deprecated and the parameter may be removed in future releases. xa start 'testa','testb'; INSERT t1 values (30); COMMIT; ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state xa end 'testa','testb'; BEGIN; ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state CREATE table t2 (a int); ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state 'connect (con1,localhost,root,,,,)' 'connection con1' xa start 'testa','testb'; ERROR XAE08: XAER_DUPID: The XID already exists xa start 'testa','testb', 123; ERROR XAE08: XAER_DUPID: The XID already exists xa start 0x7465737462, 0x2030405060, 0xb; INSERT t1 values (40); xa end 'testb',' 0@P`',11; xa prepare 'testb',0x2030405060,11; START TRANSACTION; ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state xa recover; formatID gtrid_length bqual_length data 11 5 5 testb 0@P` 'connection default' xa prepare 'testa','testb'; xa recover; formatID gtrid_length bqual_length data 11 5 5 testb 0@P` 1 5 5 testatestb xa commit 'testb',0x2030405060,11; ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state xa commit 'testa','testb'; 'connection con1' xa rollback 'testb',0x2030405060,11; SELECT * from t1; a 30 DROP table t1;