1. 08 Jan, 2013 1 commit
  2. 28 Dec, 2012 1 commit
    • unknown's avatar
      MDEV-3873 & MDEV-3876 & MDEV-3912 : Wrong result (extra rows) with ALL subquery · 6f26aac9
      unknown authored
      from a MERGE view.
      
      The problem was in the lost ability to be null for the table of a left join if it
      is a view/derived table.
      
      It hapenned because setup_table_map(), was called earlier then we merged
      the view or derived.
      
      Fixed by propagating new maybe_null flag during Item::update_used_tables().
      
      Change in join_outer.test and join_outer_jcl6.test appeared because
      IS NULL reported no used tables (i.e. constant) for argument which could not be
      NULL and new maybe_null flag was propagated for IS NULL argument (Item_field)
      because table the Item_field belonged to changed its maybe_null status.
      6f26aac9
  3. 19 Dec, 2012 1 commit
    • unknown's avatar
      MDEV-3928: Assertion `example' failed in Item_cache::is_expensive_processor... · e99aa91e
      unknown authored
      MDEV-3928: Assertion `example' failed in Item_cache::is_expensive_processor with a 2-level IN subquery
      
      Analysis:
      The following call stack shows that it is possible to set Item_cache::value_cached, and the relevant value
      without setting Item_cache::example.
      
      #0 Item_cache_temporal::store_packed at item.cc:8395
      #1 get_datetime_value at item_cmpfunc.cc:915
      #2 resolve_const_item at item.cc:7987
      #3 propagate_cond_constants at sql_select.cc:12264
      #4 propagate_cond_constants at sql_select.cc:12227
      #5 optimize_cond at sql_select.cc:13026
      #6 JOIN::optimize at sql_select.cc:1016
      #7 st_select_lex::optimize_unflattened_subqueries at sql_lex.cc:3161
      #8 JOIN::optimize_unflattened_subqueries at opt_subselect.cc:4880
      #9 JOIN::optimize at sql_select.cc:1554
      
      The fix is to set Item_cache_temporal::example even when the value is
      set directly by Item_cache_temporal::store_packed. This makes the
      Item_cache_temporal object consistent.
      e99aa91e
  4. 05 Dec, 2012 1 commit
    • unknown's avatar
      MDEV-3914 fix. · 0aad592f
      unknown authored
      Fixed algorithm of detecting of first real table in view/subquery-in-the-FROM-clase.
      0aad592f
  5. 23 Nov, 2012 1 commit
  6. 22 Nov, 2012 2 commits
    • Igor Babaev's avatar
      Merge · 431ded10
      Igor Babaev authored
      431ded10
    • Igor Babaev's avatar
      Fixed LP bug #1002146 (bug mdev-645). · db1db8fa
      Igor Babaev authored
      If the setting of system variables does not allow to use join buffer
      for a join query with GROUP BY <f1,...> / ORDER BY <f1,...> then
      filesort is not needed if the first joined table is scanned in
      the order compatible with order specified by the list <f1,...>.
      db1db8fa
  7. 20 Nov, 2012 3 commits
  8. 19 Nov, 2012 3 commits
  9. 17 Nov, 2012 2 commits
  10. 12 Nov, 2012 1 commit
  11. 10 Nov, 2012 2 commits
    • Vladislav Vaintroub's avatar
      MDEV-3849 - 1 bytes stack overwrite in normalize_dirname(). · 35313020
      Vladislav Vaintroub authored
      Take into account that length of strings passed down to this function can be up to FN_REFLEN+1 bytes. including terminating zero.
      The overwrite was caused by incomplete fix to MySQL Bug # 44834
      35313020
    • Igor Babaev's avatar
      Fixed bug mdev-3845. · 094f4cf7
      Igor Babaev authored
      If triggers are used for an insert/update/delete statement than the values of
      all virtual columns must be computed as any of them may be used by the triggers.
      094f4cf7
  12. 09 Nov, 2012 11 commits
  13. 08 Nov, 2012 3 commits
  14. 07 Nov, 2012 1 commit
  15. 06 Nov, 2012 1 commit
  16. 02 Nov, 2012 4 commits
  17. 01 Nov, 2012 2 commits
    • Igor Babaev's avatar
      Fixed bug mdev-585 (LP bug #637962) · 7714739b
      Igor Babaev authored
      If, when executing a query with ORDER BY col LIMIT n, the optimizer chose
      an index-merge scan to access the table containing col while there existed
      an index defined over col then optimizer did not consider the possibility
      of using an alternative range scan by this index to avoid filesort. This
      could cause a performance degradation if the optimizer flag index_merge was
      set up to 'on'.
      7714739b
    • unknown's avatar
      Merge 5.2 -> 5.3 · a1108a0b
      unknown authored
      a1108a0b