config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/query_rewrite_plugins/r/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/query_rewrite_plugins/r/verbose.result

#
# 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;

Man Man