1. 28 Dec, 2012 1 commit
    • unknown's avatar
      MDEV-3873 & MDEV-3876 & MDEV-3912 : Wrong result (extra rows) with ALL subquery · 91e4632e
      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.
      91e4632e
  2. 19 Dec, 2012 1 commit
    • unknown's avatar
      MDEV-3928: Assertion `example' failed in Item_cache::is_expensive_processor... · dccec3ea
      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.
      dccec3ea
  3. 05 Dec, 2012 1 commit
    • unknown's avatar
      MDEV-3914 fix. · 511b6cbe
      unknown authored
      Fixed algorithm of detecting of first real table in view/subquery-in-the-FROM-clase.
      511b6cbe
  4. 23 Nov, 2012 1 commit
  5. 22 Nov, 2012 2 commits
    • Igor Babaev's avatar
      Merge · cae686a5
      Igor Babaev authored
      cae686a5
    • Igor Babaev's avatar
      Fixed LP bug #1002146 (bug mdev-645). · 254a9281
      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,...>.
      254a9281
  6. 20 Nov, 2012 3 commits
  7. 19 Nov, 2012 3 commits
  8. 17 Nov, 2012 2 commits
  9. 12 Nov, 2012 1 commit
  10. 10 Nov, 2012 2 commits
    • Vladislav Vaintroub's avatar
      MDEV-3849 - 1 bytes stack overwrite in normalize_dirname(). · 6b8e7456
      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
      6b8e7456
    • Igor Babaev's avatar
      Fixed bug mdev-3845. · af794708
      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.
      af794708
  11. 09 Nov, 2012 11 commits
  12. 08 Nov, 2012 3 commits
  13. 07 Nov, 2012 1 commit
  14. 06 Nov, 2012 1 commit
  15. 02 Nov, 2012 4 commits
  16. 01 Nov, 2012 3 commits