1. 23 Jan, 2014 2 commits
    • 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
  2. 21 Jan, 2014 2 commits
  3. 20 Jan, 2014 2 commits
  4. 13 Jan, 2014 1 commit
  5. 20 Dec, 2013 1 commit
  6. 18 Dec, 2013 1 commit
  7. 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
  8. 11 Dec, 2013 1 commit
  9. 07 Dec, 2013 1 commit
  10. 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
  11. 04 Dec, 2013 1 commit
  12. 03 Dec, 2013 1 commit
  13. 02 Dec, 2013 2 commits
  14. 01 Dec, 2013 1 commit
  15. 29 Nov, 2013 1 commit
  16. 27 Nov, 2013 1 commit
  17. 25 Nov, 2013 1 commit
  18. 22 Nov, 2013 2 commits
  19. 21 Nov, 2013 2 commits
  20. 14 Nov, 2013 4 commits
  21. 13 Nov, 2013 7 commits
  22. 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
  23. 11 Nov, 2013 2 commits
    • unknown's avatar
      MDEV-5153: Server crashes in Item_ref::fix_fields on 2nd execution of PS with... · c98a054f
      unknown authored
      MDEV-5153: Server crashes in Item_ref::fix_fields on 2nd execution of PS with LEFT JOIN and MERGE view or SELECT SQ
      
      1. Transformation of row IN subquery made the same as single value.
      2. replace_where_subcondition() made working on several layers of OR/AND because it called on expression before fix_fields().
      c98a054f
    • unknown's avatar
      MDEV-5103: server crashed on singular Item_equal · c85db2c4
      unknown authored
      Singular Item_equal support added.
      
      The problem was that during constant table substitution Item_equal become containing only one constant which was not supported internally.
      c85db2c4