1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-14740 Locking assertion for system_time partitioning

Assertion `thd->locked_tables_mode <= LTM_LOCK_TABLES ||
!thd->lex->requires_prelocking()' failed in lock_tables().
This commit is contained in:
Aleksey Midenkov
2017-12-22 12:50:44 +03:00
parent d6b68b0e8d
commit 1e8eae40ce
3 changed files with 27 additions and 5 deletions

View File

@ -345,5 +345,14 @@ create trigger tr before insert on t2
for each row select table_rows from information_schema.tables
where table_name = 't1' into @a;
insert into t2 values (1);
# MDEV-14740 Locking assertion for system_time partitioning
create or replace table t1 (i int) with system versioning
partition by system_time interval 1 week (
partition p1 history,
partition pn current);
create or replace table t2 (f int);
create trigger tr before insert on t2
for each row select count(*) from t1 into @a;
insert into t2 values (1);
drop table t1;
drop table t2;

View File

@ -293,6 +293,16 @@ for each row select table_rows from information_schema.tables
where table_name = 't1' into @a;
insert into t2 values (1);
--echo # MDEV-14740 Locking assertion for system_time partitioning
create or replace table t1 (i int) with system versioning
partition by system_time interval 1 week (
partition p1 history,
partition pn current);
create or replace table t2 (f int);
create trigger tr before insert on t2
for each row select count(*) from t1 into @a;
insert into t2 values (1);
drop table t1;
drop table t2;