1. 15 Aug, 2006 2 commits
    • gkodinov/kgeorge@rakia.(none)'s avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 5f242d08
      gkodinov/kgeorge@rakia.(none) authored
      into  rakia.(none):/home/kgeorge/mysql/autopush/B21159-5.0-opt
      5f242d08
    • gkodinov/kgeorge@macbook.gmz's avatar
      Bug #21159: Optimizer: wrong result after AND with different data types · c606c63f
      gkodinov/kgeorge@macbook.gmz authored
      Disable const propagation for Item_hex_string.
      This must be done because Item_hex_string->val_int() is not
      the same as (Item_hex_string->val_str() in BINARY column)->val_int().
      We cannot simply disable the replacement in a particular context (
      e.g. <bin_col> = <int_col> AND <bin_col> = <hex_string>) since
      Items don't know the context they are in and there are functions like 
      IF (<hex_string>, 'yes', 'no').
      Note that this will disable some valid cases as well 
      (e.g. : <bin_col> = <hex_string> AND <bin_col2> = <bin_col>) but 
      there's no way to distinguish the valid cases without having the
      Item's parent say something like : Item->set_context(Item::STRING_RESULT)
      and have all the Items that contain other Items do that consistently.
      c606c63f
  2. 14 Aug, 2006 2 commits
  3. 11 Aug, 2006 3 commits
  4. 10 Aug, 2006 4 commits
  5. 09 Aug, 2006 3 commits
  6. 08 Aug, 2006 3 commits
  7. 07 Aug, 2006 1 commit
  8. 06 Aug, 2006 3 commits
  9. 03 Aug, 2006 18 commits
  10. 02 Aug, 2006 1 commit