1. 22 Aug, 2006 8 commits
  2. 21 Aug, 2006 2 commits
  3. 20 Aug, 2006 1 commit
    • evgen@moonbone.local's avatar
      Fixed bug#21475: Wrongly applied constant propagation leads to a false comparison. · b4c2f3f8
      evgen@moonbone.local authored
      A date can be represented as an int (like 20060101) and as a string (like
      "2006.01.01"). When a DATE/TIME field is compared in one SELECT against both
      representations the constant propagation mechanism leads to comparison
      of DATE as a string and DATE as an int. In this example it compares 2006 and
      20060101 integers. Obviously it fails comparison although they represents the
      same date.
      
      
      Now the Item_bool_func2::fix_length_and_dec() function sets the comparison
      context for items being compared. I.e. if items compared as strings the
      comparison context is STRING.
      The constant propagation mechanism now doesn't mix items used in different
      comparison contexts. The context check is done in the
      Item_field::equal_fields_propagator() and in the change_cond_ref_to_const() 
      functions.
      
      Also the better fix for bug 21159 is introduced.
      b4c2f3f8
  4. 17 Aug, 2006 1 commit
  5. 16 Aug, 2006 3 commits
  6. 15 Aug, 2006 13 commits
  7. 14 Aug, 2006 3 commits
  8. 11 Aug, 2006 3 commits
  9. 10 Aug, 2006 4 commits
  10. 09 Aug, 2006 2 commits
    • svoj@may.pils.ru's avatar
      Merge may.pils.ru:/home/svoj/devel/mysql/BUG20060/mysql-4.1 · 5f3d231f
      svoj@may.pils.ru authored
      into  may.pils.ru:/home/svoj/devel/mysql/BUG20060/mysql-5.0
      5f3d231f
    • svoj@may.pils.ru's avatar
      BUG#20060 - mysqld option "--flush " doesn't work for update statement · 81b70f97
      svoj@may.pils.ru authored
      Problem described in this bug report affects MyISAM tables only.
      
      Running mysqld --flush instructs mysqld to sync all changes to disk
      after each SQL statement. It worked well for INSERT and DELETE
      statements, but it did sync for UPDATE only in case if there was
      index change (change of colum that has an index). If no updated column
      has an index, data wasn't synced to disk.
      
      This fix makes UPDATE statement to sync data to disk even if there is
      no index change (that is only data change) and mysqld is run with
      --flush option.
      81b70f97