config root man

Current Path : /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 : //usr/opt/mysql57/mysql-test/suite/query_rewrite_plugins/r/stored_procedures.result

#
# Test of stored procedures. Queries within them will not be rewritten.
#
CREATE TABLE t1 ( a INTEGER, b CHAR(1) );
INSERT INTO t1 VALUES ( 1, 'a' ), ( 2, 'b' ), ( 3, 'c' );
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.
INSERT INTO query_rewrite.rewrite_rules ( pattern, replacement )
VALUES ( 'SELECT ?, ?, ?', 'SELECT ?, ?' );
CALL query_rewrite.flush_rewrite_rules();
Warnings:
Warning	1681	'RESET QUERY CACHE' is deprecated and will be removed in a future release.
SELECT 1, 2, 3;
1	2
1	2
Warnings:
Note	1105	Query 'SELECT 1, 2, 3' rewritten to 'SELECT 1, 2' by a query rewrite plugin
CREATE PROCEDURE p1() SELECT 1, 2, 3//
CREATE PROCEDURE p2()
BEGIN
SELECT 1, 2, 3;
SELECT 4, 5, 6;
END//
CALL p1();
1	2	3
1	2	3
CALL p2();
1	2	3
1	2	3
4	5	6
4	5	6
DROP PROCEDURE p1;
DROP PROCEDURE p2;
DROP TABLE t1;
Warnings:
Warning	1620	Plugin is busy and will be uninstalled on shutdown
# Query rewrite plugin was queued for uninstalling.

Man Man