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 : |
--source include/not_embedded.inc --echo # --echo # Bug#24289 Status Variable "Questions" gets wrong values with Stored Routines --echo # FLUSH STATUS; DELIMITER $$; CREATE FUNCTION testQuestion() RETURNS INTEGER BEGIN DECLARE foo INTEGER; DECLARE bar INTEGER; SET foo=1; SET bar=2; RETURN foo; END $$ CREATE PROCEDURE testQuestion2() BEGIN SELECT 1; END $$ DELIMITER ;$$ --disable_warnings DROP TABLE IF EXISTS t1,t2; --enable_warnings CREATE TABLE t1 (c1 INT); CREATE TABLE t2 (c1 INT); CREATE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO INSERT INTO t1 VALUES(1); --echo Assert Questions == 7 SHOW STATUS LIKE 'Questions'; SELECT testQuestion(); --echo Assert Questions == 9 SHOW STATUS LIKE 'Questions'; CALL testQuestion2(); --echo Assert Questions == 11 SHOW STATUS LIKE 'Questions'; SELECT 1; --echo Assert Questions == 13 SHOW STATUS LIKE 'Questions'; connect (con1,localhost,root,,); connection con1; SELECT 1; connection default; disconnect con1; --echo Assert Questions == 14 SHOW STATUS LIKE 'Questions'; DELIMITER $$; CREATE TRIGGER trigg1 AFTER INSERT ON t1 FOR EACH ROW BEGIN INSERT INTO t2 VALUES (1); END; $$ DELIMITER ;$$ --echo Assert Questions == 16 SHOW STATUS LIKE 'Questions'; INSERT INTO t1 VALUES (1); --echo Assert Questions == 18 SHOW STATUS LIKE 'Questions'; # TODO: Uncomment the lines below when FLUSH GLOBAL STATUS is implemented. # FLUSH STATUS; # SHOW GLOBAL STATUS LIKE 'Questions'; DROP PROCEDURE testQuestion2; DROP TRIGGER trigg1; DROP FUNCTION testQuestion; DROP EVENT ev1; DROP TABLE t1,t2; --echo End of 6.0 tests