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 |
Current File : /home/usr.opt/mysql57/mysql-test/suite/query_rewrite_plugins/r/recovery.result |
# # Test of recovery. We load some rewrite rule and restart the server. # The rewrite rule should now be loaded. # 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. # checks that the plugin is well installed SELECT plugin_name, plugin_type FROM information_schema.plugins WHERE plugin_name = 'Rewriter'; plugin_name plugin_type Rewriter AUDIT INSERT INTO query_rewrite.rewrite_rules ( pattern, replacement ) VALUES ( 'SELECT "Rewrite"', 'SELECT "Rewritten"' ); CALL query_rewrite.flush_rewrite_rules(); Warnings: Warning 1681 'RESET QUERY CACHE' is deprecated and will be removed in a future release. SELECT * FROM query_rewrite.rewrite_rules; id pattern pattern_database replacement enabled message 1 SELECT "Rewrite" NULL SELECT "Rewritten" YES NULL SELECT 'Rewrite'; Rewritten Rewritten Warnings: Note 1105 Query 'SELECT 'Rewrite'' rewritten to 'SELECT "Rewritten"' by a query rewrite plugin # # Restart the server # SELECT 'Rewrite'; Rewritten Rewritten Warnings: Note 1105 Query 'SELECT 'Rewrite'' rewritten to 'SELECT "Rewritten"' by a query rewrite plugin Warnings: Warning 1620 Plugin is busy and will be uninstalled on shutdown # Query rewrite plugin was queued for uninstalling.