• Martin Hansson's avatar
    Bug#58207: invalid memory reads when using default column value and · fc42cbac
    Martin Hansson authored
    tmptable needed
    
    The function DEFAULT() works by modifying the the data buffer pointers (often
    referred to as 'record' or 'table record') of its argument. This modification
    is done during name resolution (fix_fields().) Unfortunately, the same
    modification is done when creating a temporary table, because default values
    need to propagate to the new table.
    
    Fixed by skipping the pointer modification for fields that are arguments to
    the DEFAULT function.
    fc42cbac
subselect4.test 4.47 KB