mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug #27907 "Misleading error message when opening/locking tables"
Adjust the check that defines the error message to be returned.
This commit is contained in:
@ -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;
|
||||
@ -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;
|
||||
|
Reference in New Issue
Block a user