1. 16 Oct, 2013 6 commits
  2. 15 Oct, 2013 9 commits
  3. 14 Oct, 2013 9 commits
  4. 13 Oct, 2013 2 commits
  5. 12 Oct, 2013 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-5132. · 78b580b7
      Igor Babaev authored
      Objects of the classes Item_func_isnull and Item_func_isnotnull
      must have the flag sargable set to TRUE.
      Set the value of the flag sargable only in constructors of the 
      classes inherited from Item_int_func.
      78b580b7
  6. 11 Oct, 2013 6 commits
  7. 10 Oct, 2013 3 commits
    • Igor Babaev's avatar
      Fixed bug mdev-5105. · 7c87385e
      Igor Babaev authored
      The bug caused a memory overwrite in the function update_ref_and_keys()
      It happened due to a wrong value of SELECT_LEX::cond_count. This value
      historically was calculated by the fix_fields method. Now the logic of
      calling this method became too complicated and, as a result, this value
      is calculated not always correctly.
      The patch changes the way how and when  the values of SELECT_LEX::cond_count
      and of SELECT_LEX::between_count are calculated. The new code does it just at
      the beginning of update_ref_and_keys().
       
      7c87385e
    • Sergey Petrunya's avatar
      MDEV-5106: Server crashes in Explain_union::print_explain on ER_TOO_BIG_SELECT · 094f70fd
      Sergey Petrunya authored
      - Don't save UNION's EXPLAIN data if optimization failed with 
        an error. We could end up saving incomplete plan, which will 
        cause a crash when we attempt to print it.
      094f70fd
    • Alexey Botchkov's avatar
      MDEV-4788 check mysql-5.5 changes in spatial.cc. · 508d40fb
      Alexey Botchkov authored
              Additional patch for the 5.5.
      508d40fb
  8. 09 Oct, 2013 4 commits
    • Sergey Petrunya's avatar
      MDEV-3798: EXPLAIN UPDATE/DELETE: · 582ecb2a
      Sergey Petrunya authored
      Backport mysql-test/t/myisam_explain_non_select_all.test from mysql-5.6
      - the .result file was modified because MariaDB choses different 
        query plans in a number cases. Also, we don't have some of the 
        "incorrect EXPLAIN output" bugs that they still have.
      
      The .test file and includes were taken verbatim with one 
      exception: two tests were disabled with --disable parsing:
      
      1. @@sql_safe_updates is not enforced EXPLAINs of multitable 
         updates. In MariaDB, the execution itself will produce 
         ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE, but EXPLAIN won't.
      2. Their case #71 hits some old bug in MyISAM (See their comments
         in explain_non_select.inc for details).
      582ecb2a
    • Sergey Petrunya's avatar
      MDEV-3798: EXPLAIN UPDATE/DELETE · 7e919c52
      Sergey Petrunya authored
      - Produce correct `key_len` when type=index.
      7e919c52
    • Alexey Botchkov's avatar
      MDEV-3856 Import of a large polygon fails/hangs. · ae826010
      Alexey Botchkov authored
              The Gis_point::init_from_wkt called the String::realloc(),
              and this call is quite slow in the DEBUG mode. Which makes
              loading the huge polygon hang forever.
              Fixed by using the String::realloc(size, inc_size) version instead
              as it's done for other spatial features.
      ae826010
    • Sergey Petrunya's avatar
      MDEV-3798: EXPLAIN UPDATE/DELETE · 3c6ac669
      Sergey Petrunya authored
      - Produce correct #rows for ORDER BY ... LIMIT N queries that take advantage of 
        ordered index read to read only N rows.
      3c6ac669