Details
Description
Simplified version:
CREATE TABLE t1 ( m set('sms') NOT NULL);
|
CREATE TABLE t2 (i int);
|
CREATE TABLE u (i int);
|
create or replace trigger t1 AFTER INSERT ON t1 FOR EACH ROW INSERT IGNORE INTO t2 SELECT u.i from u JOIN (SELECT 'sms' AS method) m ON FIND_IN_SET(m.method, NEW.m);
|
insert into t1 values ('sms');
|
ERROR 1054 (42S22): Unknown column 'm' in 'field list'
|
Requires the NEW.m reference to be in the JOIN ON criteria.
Attachments
Issue Links
- relates to
-
MDEV-34683 Types mismatch when cloning items causes debug assertion
-
- Closed
-
-
MDEV-24488 Cannot use CTE in trigger definition
-
- Confirmed
-
-
MDEV-35090 (Item_func_current_user) Assertion `typeid(*copy) == typeid(*this)' failed in Item_func_or_sum::do_build_clone
-
- Closed
-
Activity
Transition | Time In Source Status | Execution Times |
---|
|
422d 12h 44m | 1 |
|
11s | 1 |
|
1d 24m | 1 |