1. 30 Nov, 2010 1 commit
    • Jon Olav Hauglid's avatar
      Bug #58414 mysql_upgrade fails on dump upgrade between 5.1.53 -> 5.5.8 · 6929cd95
      Jon Olav Hauglid authored
      The problem was that mysql_upgrade failed because DROP DATABASE
      refused to drop the 'performance_schema' database when the 
      mysql.proc table definition was made temporarily invalid
      by dump import.
      
      This patch fixes the problem by adding the error resulting
      from opening a damaged mysq.proc table (ER_CANNOT_LOAD_FROM_TABLE),
      to the list of errors DROP DATABASE will ignore when trying
      to lock stored procedures and functions before deletion.
      
      This problem was a regression introduced by the patch for
      Bug#57663.
      
      Test case added to sp-destruct.test.
      6929cd95
  2. 26 Nov, 2010 1 commit
  3. 25 Nov, 2010 5 commits
  4. 24 Nov, 2010 19 commits
  5. 23 Nov, 2010 8 commits
  6. 22 Nov, 2010 6 commits
    • Gleb Shchepa's avatar
      empty upmerge after backport of bug 55568 · c360911c
      Gleb Shchepa authored
      5.0-security --> 5.1-security
      c360911c
    • Gleb Shchepa's avatar
      backport: Bug #55568 from 5.1-security to 5.0-security · 21a33fa0
      Gleb Shchepa authored
      > revision-id: alexey.kopytov@sun.com-20100824103548-ikm79qlfrvggyj9h
      > parent: sunny.bains@oracle.com-20100816001222-xqc447tr6jwh8c53
      > committer: Alexey Kopytov <Alexey.Kopytov@Sun.com>
      > branch nick: 5.1-security
      > timestamp: Tue 2010-08-24 14:35:48 +0400
      > message:
      >   Bug #55568: user variable assignments crash server when used
      >               within query
      >   
      >   The server could crash after materializing a derived table
      >   which requires a temporary table for grouping.
      >   
      >   When destroying the temporary table used to execute a query for
      >   a derived table, JOIN::destroy() did not clean up Item_fields
      >   pointing to fields in the temporary table. This led to
      >   dereferencing a dangling pointer when printing out the items
      >   tree later in the outer SELECT.
      >   
      >   The solution is an addendum to the patch for bug37362: in
      >   addition to cleaning up items in tmp_all_fields3, do the same
      >   for items in tmp_all_fields1, since now we have an example
      >   where this is necessary.
      
      
      sql/field.cc:
        Make sure field->table_name is not set to NULL in
        Field::make_field() to avoid assertion failure in 
        Item_field::make_field() after cleaning up items
        (the assertion fired in udf.test when running
        the test suite with the patch applied).
      sql/sql_select.cc:
        In addition to cleaning up items in tmp_all_fields3, do the
        same for items in tmp_all_fields1.
        Introduce a new helper function to avoid code duplication.
      sql/sql_select.h:
        Introduce a new helper function to avoid code duplication in
        JOIN::destroy().
      21a33fa0
    • Davi Arnaut's avatar
      Assorted fixes for test failures. · 0cbb3fcf
      Davi Arnaut authored
      mysql-test/suite/sys_vars/t/shared_memory_base_name_basic.test:
        The server shared memory name is located in the server's
        temporary directory, not in the mysqltest one.
      sql/sql_show.cc:
        */ ends a comment, add space to avoid problems.
      0cbb3fcf
    • Alexander Nozdrin's avatar
      Merge from mysql-5.1-bugteam. · 5610dbcf
      Alexander Nozdrin authored
      5610dbcf
    • Alexander Nozdrin's avatar
      Merge from mysql-5.0-bugteam. · cef07f7d
      Alexander Nozdrin authored
      cef07f7d
    • Alexander Nozdrin's avatar