Loading mysql-test/r/grant2.result +24 −0 Original line number Diff line number Diff line Loading @@ -380,3 +380,27 @@ drop function f2; drop table t2; REVOKE ALL PRIVILEGES, GRANT OPTION FROM `a@`@localhost; drop user `a@`@localhost; drop database if exists mysqltest_1; drop database if exists mysqltest_2; drop user mysqltest_u1@localhost; create database mysqltest_1; create database mysqltest_2; grant all on mysqltest_1.* to mysqltest_u1@localhost; use mysqltest_2; create table t1 (i int); show create table mysqltest_2.t1; ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' create table t1 like mysqltest_2.t1; ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' grant select on mysqltest_2.t1 to mysqltest_u1@localhost; show create table mysqltest_2.t1; Table Create Table t1 CREATE TABLE `t1` ( `i` int(11) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 create table t1 like mysqltest_2.t1; use test; drop database mysqltest_1; drop database mysqltest_2; drop user mysqltest_u1@localhost; End of 5.0 tests mysql-test/r/sp-error.result +3 −3 Original line number Diff line number Diff line Loading @@ -1030,7 +1030,7 @@ select bug12329(); bug12329() 101 execute stmt1; ERROR HY000: Table 't2' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t2' doesn't exist deallocate prepare stmt1; drop function bug12329; drop table t1, t2; Loading Loading @@ -1152,12 +1152,12 @@ create trigger t1_ai after insert on t1 for each row insert into t2 values (new. create view v1 as select * from t1; drop table t2; insert into v1 values (1); ERROR HY000: Table 't2' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t2' doesn't exist drop trigger t1_ai; create function bug11555_1() returns int return (select max(i) from t2); create trigger t1_ai after insert on t1 for each row set @a:=bug11555_1(); insert into v1 values (2); ERROR HY000: Table 't2' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t2' doesn't exist drop function bug11555_1; drop table t1; drop view v1; Loading mysql-test/r/sp-prelocking.result +13 −0 Original line number Diff line number Diff line Loading @@ -254,4 +254,17 @@ execute stmt; deallocate prepare stmt; drop function bug19634; drop table t1, t2, t3; drop table if exists bug_27907_logs; drop table if exists bug_27907_t1; create table bug_27907_logs (a int); create table bug_27907_t1 (a int); create trigger bug_27907_t1_ai after insert on bug_27907_t1 for each row begin insert into bug_27907_logs (a) values (1); end| drop table bug_27907_logs; insert into bug_27907_t1(a) values (1); ERROR 42S02: Table 'test.bug_27907_logs' doesn't exist drop table bug_27907_t1; End of 5.0 tests mysql-test/r/trigger.result +2 −2 Original line number Diff line number Diff line Loading @@ -820,9 +820,9 @@ call p1(); drop trigger t1_bi; create trigger t1_bi after insert on t1 for each row insert into t3 values (new.id); execute stmt1; ERROR HY000: Table 't3' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t3' doesn't exist call p1(); ERROR HY000: Table 't3' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t3' doesn't exist deallocate prepare stmt1; drop procedure p1; drop table t1, t2, t3; Loading mysql-test/t/disabled.def +3 −0 Original line number Diff line number Diff line Loading @@ -13,3 +13,6 @@ user_limits : Bug#23921 random failure of user_limits.test im_life_cycle : Bug#27851: Instance manager test im_life_cycle fails randomly im_daemon_life_cycle : Bug#20294: Instance manager tests fail randomly im_options_set : Bug#20294: Instance manager tests fail randomly im_options_unset : Bug#20294: Instance manager tests fail randomly im_utils : Bug#20294: Instance manager tests fail randomly Loading
mysql-test/r/grant2.result +24 −0 Original line number Diff line number Diff line Loading @@ -380,3 +380,27 @@ drop function f2; drop table t2; REVOKE ALL PRIVILEGES, GRANT OPTION FROM `a@`@localhost; drop user `a@`@localhost; drop database if exists mysqltest_1; drop database if exists mysqltest_2; drop user mysqltest_u1@localhost; create database mysqltest_1; create database mysqltest_2; grant all on mysqltest_1.* to mysqltest_u1@localhost; use mysqltest_2; create table t1 (i int); show create table mysqltest_2.t1; ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' create table t1 like mysqltest_2.t1; ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for table 't1' grant select on mysqltest_2.t1 to mysqltest_u1@localhost; show create table mysqltest_2.t1; Table Create Table t1 CREATE TABLE `t1` ( `i` int(11) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 create table t1 like mysqltest_2.t1; use test; drop database mysqltest_1; drop database mysqltest_2; drop user mysqltest_u1@localhost; End of 5.0 tests
mysql-test/r/sp-error.result +3 −3 Original line number Diff line number Diff line Loading @@ -1030,7 +1030,7 @@ select bug12329(); bug12329() 101 execute stmt1; ERROR HY000: Table 't2' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t2' doesn't exist deallocate prepare stmt1; drop function bug12329; drop table t1, t2; Loading Loading @@ -1152,12 +1152,12 @@ create trigger t1_ai after insert on t1 for each row insert into t2 values (new. create view v1 as select * from t1; drop table t2; insert into v1 values (1); ERROR HY000: Table 't2' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t2' doesn't exist drop trigger t1_ai; create function bug11555_1() returns int return (select max(i) from t2); create trigger t1_ai after insert on t1 for each row set @a:=bug11555_1(); insert into v1 values (2); ERROR HY000: Table 't2' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t2' doesn't exist drop function bug11555_1; drop table t1; drop view v1; Loading
mysql-test/r/sp-prelocking.result +13 −0 Original line number Diff line number Diff line Loading @@ -254,4 +254,17 @@ execute stmt; deallocate prepare stmt; drop function bug19634; drop table t1, t2, t3; drop table if exists bug_27907_logs; drop table if exists bug_27907_t1; create table bug_27907_logs (a int); create table bug_27907_t1 (a int); create trigger bug_27907_t1_ai after insert on bug_27907_t1 for each row begin insert into bug_27907_logs (a) values (1); end| drop table bug_27907_logs; insert into bug_27907_t1(a) values (1); ERROR 42S02: Table 'test.bug_27907_logs' doesn't exist drop table bug_27907_t1; End of 5.0 tests
mysql-test/r/trigger.result +2 −2 Original line number Diff line number Diff line Loading @@ -820,9 +820,9 @@ call p1(); drop trigger t1_bi; create trigger t1_bi after insert on t1 for each row insert into t3 values (new.id); execute stmt1; ERROR HY000: Table 't3' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t3' doesn't exist call p1(); ERROR HY000: Table 't3' was not locked with LOCK TABLES ERROR 42S02: Table 'test.t3' doesn't exist deallocate prepare stmt1; drop procedure p1; drop table t1, t2, t3; Loading
mysql-test/t/disabled.def +3 −0 Original line number Diff line number Diff line Loading @@ -13,3 +13,6 @@ user_limits : Bug#23921 random failure of user_limits.test im_life_cycle : Bug#27851: Instance manager test im_life_cycle fails randomly im_daemon_life_cycle : Bug#20294: Instance manager tests fail randomly im_options_set : Bug#20294: Instance manager tests fail randomly im_options_unset : Bug#20294: Instance manager tests fail randomly im_utils : Bug#20294: Instance manager tests fail randomly