# # MDEV-15070 Crash when doing a CREATE VIEW inside a package routine # SET @object_type='trigger'; # # Start of sp-package-concurrent-dml.inc # SET sql_mode=ORACLE; CREATE PACKAGE pkg1 AS PROCEDURE p1; END; $$ CREATE PACKAGE BODY pkg1 AS PROCEDURE p2 AS BEGIN SELECT 'This is p2' AS msg; END; PROCEDURE p1 AS BEGIN SELECT 'This is p1' AS msg; DO GET_LOCK('mdev15070',120); CALL p2(); DO RELEASE_LOCK('mdev15070'); END; END; $$ connect con2,localhost,root; connection con2; DO GET_LOCK('mdev15070', 120); connection default; CALL pkg1.p1; connection con2; CREATE TABLE t1 (a INT); CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET NEW.a=1; DROP TRIGGER tr1; DROP TABLE t1; DO RELEASE_LOCK('mdev15070'); disconnect con2; connection default; msg This is p1 msg This is p2 DROP PACKAGE IF EXISTS pkg1;