1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-32022 ERROR 1054 (42S22): Unknown column 'X' in 'NEW' in trigger

add missing do_get_copy/do_build_clone
This commit is contained in:
Sergei Golubchik
2024-10-22 19:14:35 +02:00
parent 83db978271
commit eac33a23da
4 changed files with 24 additions and 2 deletions

View File

@ -2448,6 +2448,14 @@ SELECT * FROM t1;
a b total
10 20 30
DROP TABLE t1;
#
# End of 10.3 tests
#
# MDEV-32022 ERROR 1054 (42S22): Unknown column 'X' in 'NEW' in trigger
#
create table t1 (m set('sms') not null);
create table t2 (i int);
create table t3 (j int);
create trigger t1 after insert on t1 for each row insert ignore into t2 select t3.j from t3 join (select 'sms' as method) m on find_in_set(m.method, new.m);
insert into t1 values ('sms');
drop table t1, t2, t3;
# End of 10.5 tests