1. 01 Nov, 2007 4 commits
    • davi@endora.local's avatar
      Bug#30882 Dropping a temporary table inside a stored function may cause a server crash · cc007acb
      davi@endora.local authored
      If a stored function that contains a drop temporary table statement
      is invoked by a create temporary table of the same name may cause
      a server crash. The problem is that when dropping a table no check
      is done to ensure that table is not being used by some outer query
      (or outer statement), potentially leaving the outer query with a
      reference to a stale (freed) table.
      
      The solution is when dropping a temporary table, always check if
      the table is being used by some outer statement as a temporary
      table can be dropped inside stored procedures.
      
      The check is performed by looking at the TABLE::query_id value for
      temporary tables. To simplify this check and to solve a bug related
      to handling of temporary tables in prelocked mode, this patch changes
      the way in which this member is used to track the fact that table is
      used/unused. Now we ensure that TABLE::query_id is zero for unused
      temporary tables (which means that all temporary tables which were
      used by a statement should be marked as free for reuse after it's
      execution has been completed).
      cc007acb
    • kostja@bodhi.(none)'s avatar
      Use thd->is_error() instead of direct access to thd->net.report_error · 6bd9f5c1
      kostja@bodhi.(none) authored
      in evaluate_join_record().
      
      A minor cleanup required for the fix for Bug#12713.
      6bd9f5c1
    • kostja@bodhi.(none)'s avatar
      Fix a compilation warning. · f60b8909
      kostja@bodhi.(none) authored
      f60b8909
    • kostja@bodhi.(none)'s avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · 5fa9440a
      kostja@bodhi.(none) authored
      into  bodhi.(none):/opt/local/work/mysql-5.1-runtime-inc-2
      5fa9440a
  2. 31 Oct, 2007 18 commits
  3. 30 Oct, 2007 8 commits
  4. 29 Oct, 2007 5 commits
  5. 25 Oct, 2007 2 commits
  6. 24 Oct, 2007 2 commits
  7. 23 Oct, 2007 1 commit