• unknown's avatar
    Fixed bug #25398: crash in a trigger when using trigger fields · 35e36393
    unknown authored
    in a select list.
    The objects of the Item_trigger_field class inherited the implementations
    of the methods copy_or_same, get_tmp_table_item and get_tmp_table_field
    from the class Item_field while they rather should have used the default
    implementations defined for the base class Item.
    It could cause catastrophic problems for triggers that used SELECTs
    with select list containing trigger fields such as NEW.<table column>
    under DISTINCT.
    
    
    mysql-test/r/trigger.result:
      Added a test case for bug #25398.
    mysql-test/t/trigger.test:
      Added a test case for bug #25398.
    35e36393
item.h 79.8 KB