| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/mysql/mysql-test/main/ |
Upload File : |
# ==== Purpose ==== # # Test verifies that "init_connect" and "init_slave" system variables work # fine when "profiling=on". # # ==== Implementation ==== # # Steps: # 0 - Create regular user without super privilege so that "init_connect" # variable is effective. # 1 - Enable profiling. # 2 - Start a new connection which will try to execute the statements # specified in "init_connect". No assert should be reported. # 3 - Execute SHOW PROFILES to verify that statements specified in # "init_connect" are displayed as part of profiling. # # ==== References ==== # # MDEV-22706: Assertion `!current' failed in PROFILING::start_new_query # --source include/not_embedded.inc --source include/have_profiling.inc SET @saved_profiling=@@GLOBAL.profiling; SET @saved_init_connect=@@GLOBAL.init_connect; SET GLOBAL init_connect="set @a=2;set @b=3"; SET GLOBAL profiling=on; create user mysqltest1@localhost; connect (con1,localhost,mysqltest1,,); connection con1; --disable_ps2_protocol SELECT @a, @b; --enable_ps2_protocol --replace_column 2 # SHOW PROFILES; #========== Clean up =========== connection default; disconnect con1; DROP USER mysqltest1@localhost; SET GLOBAL profiling=@saved_profiling; SET GLOBAL init_connect=@saved_init_connect;