1. 15 Oct, 2013 7 commits
  2. 14 Oct, 2013 9 commits
  3. 13 Oct, 2013 2 commits
  4. 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
  5. 11 Oct, 2013 5 commits
  6. 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
  7. 09 Oct, 2013 5 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
    • Sergey Petrunya's avatar
      MDEV-3798: EXPLAIN UPDATE/DELETE · 161d6875
      Sergey Petrunya authored
      - Generate correct contents of `Extra` column for UPDATEs/DELETEs that use quick selects
      - UPDATEs with used_key_is_modified=true will show "Using buffer"
      161d6875
  8. 08 Oct, 2013 3 commits
    • Alexander Barkov's avatar
      MDEV-4425 Regexp enhancements · 1bcd2beb
      Alexander Barkov authored
      Do not pass PCRE_UCP flag for binary data.
      This makes bytes 0x80..FF not to belong to 
      generic character classes \d (digit) and \w (word character).
      
      SELECT 0xFF RLIKE '\\w';
       -> 0
      
      Note, this change does not affect non-binary data,
      which is still examined with the PCRE_UCP flag by default.
      1bcd2beb
    • Sergey Petrunya's avatar
      MDEV-3798: EXPLAIN UPDATE/DELETE · 69e6a2bb
      Sergey Petrunya authored
      - Update test results after last few csets
      - Generate correct value for `possible_keys` column for single table UPDATE/DELETE.
      69e6a2bb
    • Sergey Petrunya's avatar
      MDEV-3798: EXPLAIN UPDATE/DELETE · fda46df6
      Sergey Petrunya authored
      - if EXPLAIN DELETE prints "Deleting all rows", it should show the 
        expected number of rows in the rows column.
      fda46df6
  9. 07 Oct, 2013 3 commits
  10. 05 Oct, 2013 2 commits