Server IP : 104.21.38.3 / Your IP : 162.158.163.122 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/audit_null/t/ |
Upload File : |
--source include/have_null_audit_plugin.inc # Test for WL#3771 (audit null plugin) # Created by HHunger 2009-09-02 # --source include/not_embedded.inc # Adjustment to the OS dependent extension of shared libraries. let $expected_extension= so; if(`SELECT CONVERT(@@version_compile_os USING latin1) IN ("Win32","Win64","Windows")`) { let $expected_extension= dll; } # Adjustment to the fact that protocols which lead to the use # of prepared statements cause that a higher number of # plugin calls gets counted. let $expected_calls= 65; if(`SELECT $PS_PROTOCOL > 0`) { let $expected_calls= 107; } if(`SELECT $SP_PROTOCOL > 0`) { let $expected_calls= 65; } if(`SELECT $CURSOR_PROTOCOL > 0`) { let $expected_calls= 50; } if(`SELECT $VIEW_PROTOCOL > 0`) { let $expected_calls= 94; } --replace_result $expected_extension <expected_extension> --error ER_CANT_FIND_DL_ENTRY eval INSTALL PLUGIN audit_null SONAME 'adt_null.$expected_extension'; --replace_result $expected_extension <expected_extension> eval INSTALL PLUGIN null_audit SONAME 'adt_null.$expected_extension'; CREATE TABLE t1 (c1 INT, c2 CHAR(20)); --error ER_TABLE_EXISTS_ERROR CREATE TABLE t1 (c1 INT, c2 CHAR(20)); INSERT INTO t1 VALUES (1,'a'),(2,'b'),(3,'c'); SELECT * FROM t1; --error ER_NO_SUCH_TABLE SELECT * FROM t2; DROP TABLE t1; --replace_result $expected_calls <expected_number_of_calls> SHOW STATUS LIKE 'audit_null_called'; --error ER_SP_DOES_NOT_EXIST UNINSTALL PLUGIN audit_null; UNINSTALL PLUGIN null_audit;