Current Path : /home/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 : //home/usr.opt/mysql57/mysql-test/suite/query_rewrite_plugins/t/privileges.test |
--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 ( 'SELECT "original"', 'SELECT "rewritten"' ); CALL query_rewrite.flush_rewrite_rules(); CREATE USER mysqluser1@localhost; --connect (conn1, localhost, mysqluser1, , test) --connection conn1 --error ER_TABLEACCESS_DENIED_ERROR INSERT INTO query_rewrite.rewrite_rules ( pattern ) VALUES ( '' ); --error ER_TABLEACCESS_DENIED_ERROR INSERT INTO query_rewrite.rewrite_rules ( replacement ) VALUES ( '' ); --error ER_TABLEACCESS_DENIED_ERROR INSERT INTO query_rewrite.rewrite_rules ( enabled ) VALUES ( '' ); --error ER_TABLEACCESS_DENIED_ERROR INSERT INTO query_rewrite.rewrite_rules ( message ) VALUES ( '' ); --error ER_TABLEACCESS_DENIED_ERROR SELECT pattern FROM query_rewrite.rewrite_rules; --error ER_TABLEACCESS_DENIED_ERROR SELECT replacement FROM query_rewrite.rewrite_rules; --error ER_TABLEACCESS_DENIED_ERROR SELECT enabled FROM query_rewrite.rewrite_rules; --error ER_TABLEACCESS_DENIED_ERROR SELECT message FROM query_rewrite.rewrite_rules; --error ER_TABLEACCESS_DENIED_ERROR UPDATE query_rewrite.rewrite_rules SET pattern = ''; --error ER_TABLEACCESS_DENIED_ERROR UPDATE query_rewrite.rewrite_rules SET replacement = ''; --error ER_TABLEACCESS_DENIED_ERROR UPDATE query_rewrite.rewrite_rules SET enabled = ''; --error ER_TABLEACCESS_DENIED_ERROR UPDATE query_rewrite.rewrite_rules SET message = ''; --error ER_PROCACCESS_DENIED_ERROR CALL query_rewrite.flush_rewrite_rules(); SELECT 'original'; --disconnect conn1 --connection default DROP USER mysqluser1@localhost; --source suite/query_rewrite_plugins/include/uninstall_rewriter.inc