• Gleb Shchepa's avatar
    Bug #39002: The server crashes on the query: · 6f94324f
    Gleb Shchepa authored
      INSERT .. SELECT .. ON DUPLICATE KEY UPDATE col=DEFAULT
    
    In order to get correct values from update fields that
    belongs to the SELECT part in the INSERT .. SELECT .. ON
    DUPLICATE KEY UPDATE statement, the server adds referenced
    fields to the select list. Part of the code that does this
    transformation is shared between implementations of
    the DEFAULT(col) function and the DEFAULT keyword (in
    the col=DEFAULT expression), and an implementation of
    the DEFAULT keyword is incomplete.
    6f94324f
default.result 8.06 KB