1. 24 Jan, 2014 1 commit
  2. 23 Jan, 2014 3 commits
    • Sergey Petrunya's avatar
      MDEV-5368: Server crashes in Item_in_subselect::optimize on ... · 519c7305
      Sergey Petrunya authored
      - convert_subq_to_sj() must connect child select's tables into 
        parent select's TABLE_LIST::next_local chain.  
      - The problem was that it took child's leaf_tables.head() which
        is different. This could cause certain tables (in this bug's case,
        child select's non-merged semi-join) not to be present in 
        TABLE_LIST::next_local chain.  Which would cause non-merged semi-join
        not to be initialized in setup_tables(), which would lead to 
        NULL pointer dereference.
      519c7305
    • unknown's avatar
      merge of MDEV-5356 5.1->5.3 (with more fixes and test suite). · d9cb1352
      unknown authored
      THD::thd->activate_stmt_arena_if_needed() should be used to temporary activating statement arena instead of direct usage of THD::set_n_backup_active_arena() because possible such scenario:
        1) func1 saves current arena and activates copy1 of statement arena
        2) func2 saves copy1 of statement arena setup by func1 and activates copy2
        3) some changes made for copy 2
        4) func2 stores changed copy2 back to statenet arena and activates copy1
        5) func1 store unchanged copy1 back to statemnt arena (rewrite changed copy 2 so changes become lost) and activates arena which was before.
      d9cb1352
    • unknown's avatar
      MDEV-5356: Server crashes in Item_equal::contains on 2nd execution of a PS · 5f5f7bef
      unknown authored
      THD::thd->activate_stmt_arena_if_needed() should be used to temporary activating statement arena instead of direct usage of THD::set_n_backup_active_arena() because possible such scenario:
        1) func1 saves current arena and activates copy1 of statement arena
        2) func2 saves copy1 of statement arena setup by func1 and activates copy2
        3) some changes made for copy 2
        4) func2 stores changed copy2 back to statenet arena and activates copy1
        5) func1 store unchanged copy1 back to statemnt arena (rewrite changed copy 2 so changes become lost) and activates arena which was before.
      5f5f7bef
  3. 21 Jan, 2014 2 commits
  4. 20 Jan, 2014 2 commits
  5. 13 Jan, 2014 1 commit
  6. 20 Dec, 2013 1 commit
  7. 18 Dec, 2013 1 commit
  8. 12 Dec, 2013 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-5410. · 3ec4296e
      Igor Babaev authored
      The fix for bug #27937 was incomplete: it did not handle correctly the queries
      containing UNION with global ORDER BY in subselects.
      3ec4296e
  9. 11 Dec, 2013 1 commit
  10. 07 Dec, 2013 1 commit
  11. 05 Dec, 2013 2 commits
    • Igor Babaev's avatar
      Merge · 21d0d8c5
      Igor Babaev authored
      21d0d8c5
    • Igor Babaev's avatar
      Fixed bug mdev-5382 · ccf5871d
      Igor Babaev authored
      When marking used columns the function find_field_in_table_ref() erroneously
      called the walk method for the real item behind a view/derived table field
      with the second parameter set to TRUE.
      This erroneous code was introduced in 2006. 
      ccf5871d
  12. 04 Dec, 2013 1 commit
  13. 03 Dec, 2013 1 commit
  14. 02 Dec, 2013 2 commits
  15. 01 Dec, 2013 1 commit
  16. 29 Nov, 2013 1 commit
  17. 27 Nov, 2013 1 commit
  18. 25 Nov, 2013 1 commit
  19. 22 Nov, 2013 2 commits
  20. 21 Nov, 2013 2 commits
  21. 14 Nov, 2013 4 commits
  22. 13 Nov, 2013 7 commits
  23. 12 Nov, 2013 1 commit
    • Sergei Golubchik's avatar
      MDEV-5113 Wrong result (extra row) and valgrind warnings in... · 441192bf
      Sergei Golubchik authored
      MDEV-5113 Wrong result (extra row) and valgrind warnings in Item_maxmin_subselect::any_value on 2nd execution of PS with SELECT subquery
      
      When setting Item_func_not_all::test_sum_item or Item_func_not_all::test_sub_item,
      reset the other one to NULL - they can never be set both. When a PS is reexecuted,
      different executions might be optimized differently and a wrong test_su*_item
      might stay set from the previous execution.
      441192bf