Server IP : 104.21.38.3 / Your IP : 162.158.108.157 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/rpl/t/ |
Upload File : |
# ==== Purpose ==== # # Test that aliases of variables in binary log aren't ignored with NAME_CONST. # # ==== Method ==== # # Create a procedure with aliases of variables, then replicate it to slave. # BUG#35515 Aliases of variables in binary log are ignored with NAME_CONST. # --source include/not_group_replication_plugin.inc source include/master-slave.inc; --echo ==== Initialize ==== --echo [on master] --connection master create table t1 (id int); --echo ==== create a procedure that has a column aliase in a subquery ==== --disable_warnings drop procedure if exists test_procedure; --enable_warnings delimiter $$; create procedure test_procedure(_id int) begin insert into t1 (id) select a.id from ( select _id as id ) a; end;$$ delimiter ;$$ --echo ==== enable the binary log, then call the procedure ==== call test_procedure(1234); --echo [on slave] --source include/sync_slave_sql_with_master.inc select * from t1 order by id; --echo ==== Clean up ==== --echo [on master] connection master; drop table t1; drop procedure test_procedure; --source include/rpl_end.inc