1. 12 Sep, 2006 1 commit
    • timour/timka@lamia.home's avatar
      Fix for BUG#21774: Column count doesn't match value count at row x · 38a450b4
      timour/timka@lamia.home authored
      The cause of the bug was an incomplete fix for bug 18080.
      The problem was that setup_tables() unconditionally reset the
      name resolution context to its 'tables' argument, which pointed
      to the first table of an SQL statement.
      
      The bug fix limits resetting of the name resolution context in
      setup_tables() only in the cases when the context was not set
      by earlier parser/optimizer phases.
      38a450b4
  2. 28 Aug, 2006 1 commit
  3. 26 Aug, 2006 3 commits
  4. 25 Aug, 2006 3 commits
  5. 24 Aug, 2006 5 commits
  6. 23 Aug, 2006 3 commits
  7. 22 Aug, 2006 15 commits
  8. 21 Aug, 2006 5 commits
  9. 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
  10. 18 Aug, 2006 2 commits
  11. 17 Aug, 2006 1 commit