Current Path : /usr/opt/mysql57/mysql-test/suite/query_rewrite_plugins/t/ |
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 : //usr/opt/mysql57/mysql-test/suite/query_rewrite_plugins/t/insert.test |
--echo # --echo # Test of rewrites of insert statements. --echo # --echo # This test is indeed rather pointless unless the plugin accepts insert --echo # statements as pattern, which it currently does not. call mtr.add_suppression("Plugin rewriter reported: 'Some rules failed to load.'"); --source suite/query_rewrite_plugins/include/have_plugin_rewriter.inc --source suite/query_rewrite_plugins/include/install_rewriter.inc INSERT INTO query_rewrite.rewrite_rules ( pattern, replacement ) VALUES ( 'INSERT INTO test.t1 ( a, b ) VALUES ( ?, ? )', 'INSERT INTO test.t1 ( b, a ) VALUES ( ?, ? )' ); --error ER_SIGNAL_EXCEPTION CALL query_rewrite.flush_rewrite_rules(); SELECT * FROM query_rewrite.rewrite_rules; CREATE TABLE t1 ( a INT, b INT ); INSERT INTO test.t1 ( a, b ) VALUES ( 1, 2 ); SELECT * FROM t1; DROP TABLE t1; --source suite/query_rewrite_plugins/include/uninstall_rewriter.inc