Server IP : 172.67.216.182 / Your IP : 172.70.147.119 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/query_rewrite_plugins/r/ |
Upload File : |
# # Test of the various values of the verbose variable. # SET sql_mode = 'PIPES_AS_CONCAT'; Warnings: Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release. Warnings: Warning 1681 'RESET QUERY CACHE' is deprecated and will be removed in a future release. Warnings: Warning 1681 'RESET QUERY CACHE' is deprecated and will be removed in a future release. # Query rewrite plugin was installed. SHOW VARIABLES LIKE 'Rewriter_verbose'; Variable_name Value rewriter_verbose 1 # We want notes to show in the error log. SELECT @@log_error_verbosity; @@log_error_verbosity 3 INSERT INTO query_rewrite.rewrite_rules ( pattern, replacement ) VALUES ( 'SELECT 1', 'SELECT "rewritten"' ); CALL query_rewrite.flush_rewrite_rules(); Warnings: Warning 1681 'RESET QUERY CACHE' is deprecated and will be removed in a future release. UPDATE performance_schema.setup_consumers SET enabled = 'YES' WHERE NAME = 'events_statements_history'; SET @@global.rewriter_verbose = 2; SELECT 1; rewritten rewritten Warnings: Note 1105 Query 'SELECT 1' rewritten to 'SELECT "rewritten"' by a query rewrite plugin SELECT 'nonrewritten'; nonrewritten nonrewritten SET @@global.rewriter_verbose = DEFAULT; CREATE TABLE IF NOT EXISTS error_log ( line TEXT ); DELETE FROM error_log; LOAD DATA LOCAL INFILE 'ERROR_LOG' INTO TABLE error_log FIELDS TERMINATED BY '\t'; UPDATE error_log SET line = replace ( line, '\r', '' ); SELECT search_error_log( '[Note]', "%Plugin Rewriter reported: " || "'Statement \"SELECT 'nonrewritten'\"%" ) INTO @line; SELECT @line; @line [Note] Plugin Rewriter reported: 'Statement "SELECT 'nonrewritten'" with digest "3d4fc22e33e10d7235eced3c75a84c2c" did not match any rule.' SELECT digest INTO @pfs_digest FROM performance_schema.events_statements_history_long WHERE sql_text = "SELECT 'nonrewritten'" LIMIT 1; # Mask out the digest from the message SELECT substring_index(substring_index(@line, 'digest "', -1), '"', 1) INTO @log_digest; SELECT @pfs_digest = @log_digest AS digest_is_correct; digest_is_correct 1 DROP TABLE error_log; DROP FUNCTION search_error_log; Warnings: Warning 1620 Plugin is busy and will be uninstalled on shutdown # Query rewrite plugin was queued for uninstalling. SET sql_mode = DEFAULT;