1. 16 Feb, 2007 2 commits
    • evgen@moonbone.local's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 31d63b79
      evgen@moonbone.local authored
      into  moonbone.local:/mnt/gentoo64/work/16630-bug-5.0-opt-mysql
      31d63b79
    • evgen@moonbone.local's avatar
      Bug#16630: The update fields of the INSERT .. SELECT .. ON DUPLICATE KEY · 7916d9e9
      evgen@moonbone.local authored
      UPDATE contains wrong data if the SELECT employs a temporary table.
      
      If the UPDATE values of the INSERT .. SELECT .. ON DUPLICATE KEY UPDATE
      statement contains fields from the SELECT part and the select employs a
      temporary table then those fields will contain wrong values because they
      aren't corrected to get data from the temporary table.
      
      The solution is to add these fields to the selects all_fields list,
      to store pointers to those fields in the selects ref_pointer_array and
      to access them via Item_ref objects.
      
      The substitution for Item_ref objects is done in the new function called 
      Item_field::update_value_transformer(). It is called through the
      item->transform() mechanism at the end of the select_insert::prepare()
      function.
      7916d9e9
  2. 13 Feb, 2007 5 commits
  3. 12 Feb, 2007 16 commits
  4. 11 Feb, 2007 3 commits
  5. 09 Feb, 2007 7 commits
  6. 08 Feb, 2007 6 commits
  7. 07 Feb, 2007 1 commit
    • igor@olga.mysql.com's avatar
      Fixed bug #25931. · 8d4027fd
      igor@olga.mysql.com authored
      View check option clauses were ignored for updates of multi-table
      views when the updates could not be performed on fly and the rows
      to update had to be put into temporary tables first.
      8d4027fd