1. 01 Jun, 2007 1 commit
    • svoj@mysql.com/june.mysql.com's avatar
      BUG#28574 - repair table causes queries to fail with various · 0478ef18
      svoj@mysql.com/june.mysql.com authored
                  corruption errors: 126,134,145
      
      When one thread attempts to lock two (or more) tables and another
      thread executes statement that aborts these locks (e.g. REPAIR
      TABLE) we may get a table object with wrong lock type in a table
      cache.
      
      For example if SELECT FROM t1,t2 was aborted, subsequent INSERT
      INTO t1 may be executed under read lock.
      
      As a result we may get various table corruptions and even a server
      crash.
      
      This is fixed by resetting lock type in case lock was aborted by
      another thread.
      
      I failed to create reasonable test case for this bug.
      0478ef18
  2. 23 May, 2007 1 commit
  3. 22 May, 2007 1 commit
  4. 21 May, 2007 2 commits
  5. 18 May, 2007 9 commits
  6. 17 May, 2007 3 commits
  7. 16 May, 2007 5 commits
  8. 15 May, 2007 2 commits
  9. 14 May, 2007 2 commits
  10. 10 May, 2007 2 commits
  11. 09 May, 2007 3 commits
  12. 08 May, 2007 2 commits
  13. 07 May, 2007 2 commits
  14. 04 May, 2007 4 commits
  15. 03 May, 2007 1 commit
    • evgen@moonbone.local's avatar
      Bug#23656: Wrong conversion result of a DATETIME to integer using CAST function. · 7f9411c1
      evgen@moonbone.local authored
      The generic string to int conversion was used by the Item_func_signed and
      the Item_func_unsigned classes to convert DATE/DATETIME values to the
      SIGNED/UNSIGNED type. But this conversion produces wrong results for such
      values.
      
      Now if the item which result has to be converted can return its result as
      longlong then the item->val_int() method is used to allow the item to carry
      out the conversion itself and return the correct result.
      This condition is checked in the Item_func_signed::val_int() and the
      Item_func_unsigned::val_int() functions.
      7f9411c1