Server IP : 172.67.216.182 / Your IP : 104.23.175.136 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/innodb/t/ |
Upload File : |
--source include/have_innodb.inc --source include/have_debug.inc create table t1 (f1 int primary key) engine=innodb; create table t2 (f1 int primary key, constraint c1 foreign key (f1) references t1(f1) on update cascade on delete cascade) engine=innodb; create table t3 (f1 int primary key, constraint c2 foreign key (f1) references t1(f1) on update cascade on delete cascade) engine=innodb; show create table t1; show create table t2; show create table t3; insert into t1 values (1); insert into t1 values (2); insert into t1 values (3); insert into t2 values (1); insert into t2 values (2); insert into t2 values (3); insert into t3 values (1); insert into t3 values (2); insert into t3 values (3); select f1 from t1; select f1 from t2; select f1 from t3; SET DEBUG='+d,dml_cascade_only_once'; SET DEBUG='+d,row_upd_cascade_lock_wait_err'; update t1 set f1 = 100 where f1 = 2; select f1 from t1; select f1 from t2; select f1 from t3; drop table t2; drop table t3; drop table t1;