1. 17 Mar, 2014 1 commit
  2. 16 Mar, 2014 4 commits
  3. 15 Mar, 2014 1 commit
  4. 14 Mar, 2014 1 commit
    • unknown's avatar
      MDEV-5446: Assertion `!table || (!table->read_set ||... · 50ebf4be
      unknown authored
      MDEV-5446: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' fails on EXPLAIN EXTENDED with VALUES function
      
      field_index should be set correctly for null field created by Item_insert_value::fix_fields().
      50ebf4be
  5. 13 Mar, 2014 4 commits
  6. 12 Mar, 2014 4 commits
  7. 07 Mar, 2014 1 commit
  8. 06 Mar, 2014 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-5686. · 6d58a29b
      Igor Babaev authored
      The calls of the function remove_eq_conds() may change the and/or structure
      of the where conditions. So JOIN::equal_cond should be updated for non-recursive
      calls of remove_eq_conds(). 
      6d58a29b
  9. 26 Feb, 2014 1 commit
    • Sergei Golubchik's avatar
      Fix code in make_sortkey() that only worked by chance · ff92ece2
      Sergei Golubchik authored
      (assert added by MySQL verified that strnxfrm can only *increase*
      the string length if from == to, and the latter is a random
      decision made by individual items and String::realloc).
      
      Fix it by avoiding the memcpy in the first place.
      ff92ece2
  10. 14 Mar, 2014 1 commit
    • Michael Widenius's avatar
      MDEV-5829: STOP SLAVE resets global status variables · 275b3d64
      Michael Widenius authored
      Reason for the bug was an optimization for higher connect speed where we moved when global status was updated,
      but forgot to update states when slave thread dies.
      Fixed by adding thd->add_status_to_global() before deleting slave thread's thd.
      
      
      mysys/my_delete.c:
        Added missing newline
      sql/mysqld.cc:
        Use add_status_to_global()
      sql/slave.cc:
        Added missing add_status_to_global()
      sql/sql_class.cc:
        Use add_status_to_global()
      sql/sql_class.h:
        Simplify adding local status to global by adding add_status_to_global()
      275b3d64
  11. 21 Feb, 2014 1 commit
    • Igor Babaev's avatar
      After constant row substitution the optimizer should call the method · e3db9ddf
      Igor Babaev authored
      update_used_tables for the the where condition to update cached
      indicators of constant subexpressions. It should be done before further
      possible simplification of the where condition.
      
      This change caused simplification of the executed where conditions 
      in many test cases.
      e3db9ddf
  12. 19 Feb, 2014 4 commits
    • Sergey Petrunya's avatar
      Backport the following from 5.5 to 5.3: · 07eea0f1
      Sergey Petrunya authored
      MDEV-4556 Server crashes in SEL_ARG::rb_insert with index_merge+index_merge_sort_union, FORCE INDEX
      - merge_same_index_scans() may put the same SEL_ARG tree in multiple result plans.
        make it call incr_refs() on the SEL_ARG trees that it does key_or() on, because 
        key_or(sel_arg_tree_1, sel_arg_tree_2) call may invalidate SEL_ARG trees pointed 
        by sel_arg_tree_1 and sel_arg_tree_2.
          
      07eea0f1
    • Sergey Petrunya's avatar
      Fix compile failure: · d0ba6642
      Sergey Petrunya authored
      In function ‘void* memset(void*, int, size_t)’,
          inlined from ‘void Lifo_buffer::set_buffer_space(uchar*, uchar*)’ at sql_lifo_buffer.h:70:5,
          inlined from ‘int DsMrr_impl::dsmrr_init(handler*, RANGE_SEQ_IF*, void*, uint, uint, HANDLER_BUFFER*)’ at multi_range_read.cc:895:62:
      /usr/include/i386-linux-gnu/bits/string3.h:82:32: error: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror]
      
      It was intentional that the buffer is set to zero length there.
      d0ba6642
    • Sergey Petrunya's avatar
      Add a debugger helper function that does this: · 6fb8099d
      Sergey Petrunya authored
      (gdb) p dbug_print_table_row(table)
        $33 = "SUBQUERY2_t1(col_int_key,col_varchar_nokey)=(7,c)"
      6fb8099d
    • Sergey Petrunya's avatar
      MDEV-5600: Wrong result on 2nd execution of PS depending on the length of the query · 3cf2197f
      Sergey Petrunya authored
      - Item_direct_view_ref didn't clear its pointer to item_equal in ::cleanup.
      - Some Item_direct_view_ref objects have statement lifetime (i.e. they
        survive across multiple EXECUTE commands). Item_equal objects live only for
        the duration of one EXECUTE. This caused Item_direct_view_ref to have a stale pointer,
        which could cause all sorts of effects. (In this bug's testcase it was pointing to
        the wrong Item_equal, causing wrong query result)
      - Fixed by doing what Item_field::cleanup() does - don't keep item_equal pointer value.
      - There is no testcase because the only testcase I've got is highly fragile (e.g. the
        bug will not show up if @@datadir is of the wrong length).
      3cf2197f
  13. 18 Feb, 2014 2 commits
  14. 14 Feb, 2014 5 commits
  15. 13 Feb, 2014 5 commits
  16. 11 Mar, 2014 4 commits