1. 24 Jan, 2007 2 commits
  2. 23 Jan, 2007 2 commits
    • dlenev@mockturtle.local's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0-runtime · 6562df20
      dlenev@mockturtle.local authored
      into  mockturtle.local:/home/dlenev/src/mysql-5.0-bg24491
      6562df20
    • dlenev@mockturtle.local's avatar
      Proposed fix for bug#24491 "using alias from source table in insert ... · 2b63f106
      dlenev@mockturtle.local authored
      on duplicate key".
      
      INSERT ... SELECT ... ON DUPLICATE KEY UPDATE which was used in
      stored routine or as prepared statement and which in its ON DUPLICATE
      KEY clause erroneously tried to assign value to a column mentioned only
      in its SELECT part was properly emitting error on the first execution
      but succeeded on the second and following executions.
      
      Code which is responsible for name resolution of fields mentioned in
      UPDATE clause (e.g. see select_insert::prepare()) modifies table list
      and Name_resolution_context used in this process. It uses
      Name_resolution_context_state::save_state/restore_state() to revert
      these modifications. Unfortunately those two methods failed to revert
      properly modifications to TABLE_LIST::next_name_resolution_table
      and this broke name resolution process for successive executions.
      
      This patch fixes Name_resolution_context_state::save_state/restore_state()
      in such way that it properly handles TABLE_LIST::next_name_resolution_table.
      2b63f106
  3. 22 Jan, 2007 2 commits
  4. 20 Jan, 2007 2 commits
  5. 19 Jan, 2007 8 commits
  6. 18 Jan, 2007 5 commits
  7. 17 Jan, 2007 7 commits
  8. 16 Jan, 2007 8 commits
  9. 15 Jan, 2007 4 commits