mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-28266 Crash in Field_string::type_handler when calling procedures
on_table_fill_finished() should always be done at the end of open() even if result is not Select_materialize but (for example) Select_fetch_into_spvars.
This commit is contained in:
@ -800,3 +800,24 @@ drop procedure test_proc;
|
||||
drop view v1;
|
||||
drop function get_name;
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-28266: Crash in Field_string::type_handler when calling procedures
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t (f INT);
|
||||
|
||||
--delimiter $
|
||||
CREATE TRIGGER tr AFTER INSERT ON t FOR EACH ROW
|
||||
FOR x IN (SELECT * FROM json_table(NULL, '$' COLUMNS(a CHAR(1) path '$.*')) tmp)
|
||||
DO set @a=1; END FOR $
|
||||
--delimiter ;
|
||||
|
||||
INSERT INTO t () values ();
|
||||
|
||||
# Cleanup
|
||||
DROP TABLE t;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.6 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user