1. 14 Oct, 2013 1 commit
  2. 13 Oct, 2013 2 commits
  3. 12 Oct, 2013 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-5132. · b47707f3
      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.
      b47707f3
  4. 11 Oct, 2013 3 commits
  5. 10 Oct, 2013 2 commits
    • Igor Babaev's avatar
      Fixed bug mdev-5105. · 22d9f34f
      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().
       
      22d9f34f
    • Alexey Botchkov's avatar
      MDEV-4788 check mysql-5.5 changes in spatial.cc. · 8c47107f
      Alexey Botchkov authored
              Additional patch for the 5.5.
      8c47107f
  6. 09 Oct, 2013 1 commit
    • Alexey Botchkov's avatar
      MDEV-3856 Import of a large polygon fails/hangs. · a816cc80
      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.
      a816cc80
  7. 08 Oct, 2013 1 commit
    • Alexander Barkov's avatar
      MDEV-4425 Regexp enhancements · c870a43f
      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.
      c870a43f
  8. 04 Oct, 2013 2 commits
    • Igor Babaev's avatar
      Fixed bug mdev-5078. · 1d619086
      Igor Babaev authored
      For aggregated fields from views/derived tables the possible adjustment
      of thd->lex->in_sum_func->max_arg_level in the function Item_field::fix_fields
      must be done before we leave the function.
      1d619086
    • Alexander Barkov's avatar
      MDEV-4425 Regexp enhancements · b801d553
      Alexander Barkov authored
      Fixing compilation failure on Solaris.
      The int64_t type was not defined because stdint.h was not included
      due to a missing definition in pcre/config-cmake.h.in.
      b801d553
  9. 03 Oct, 2013 5 commits
    • Alexander Barkov's avatar
      MDEV-4425 Regexp enhancements · 07d361f5
      Alexander Barkov authored
      Clean-up: moving initialization of my_string_stack_guard
      and pcre_stack_guard into init_libstrings() and init_pcre().
      07d361f5
    • Alexander Barkov's avatar
      MDEV-4425 Regexp enhancements · 0c3569ee
      Alexander Barkov authored
      Adding tests with 0x00 characters from
      
      Bug#70470 REGEXP fails to find matches after NUL character
      0c3569ee
    • Alexander Barkov's avatar
      MDEV-4425 Regexp enhancements · 6036c133
      Alexander Barkov authored
      Adding more tests for case sensitivity,
      with various collation and (?i) flags combinations.
      6036c133
    • Alexander Barkov's avatar
      MDEV-4425 Regexp enhancements · a002533c
      Alexander Barkov authored
      PCRE unit tests failed on Ubuntu Precise, because "source" 
      is not a known command in "dash" (the default shell in Precise).
      
      Changing "source" to ".", which should be understood in all shells.
      a002533c
    • Igor Babaev's avatar
      Fixed bug mdev-5028. · 64212f11
      Igor Babaev authored
      Apparently in a general case a short-cut for the distinct optimization
      is invalid if join buffers are used to join tables after the tables whose
      values are to selected.
      64212f11
  10. 02 Oct, 2013 5 commits
    • Alexander Barkov's avatar
      A follow-up for the previous commit: · 66faeaaf
      Alexander Barkov authored
      MDEV-4425 Regexp enhancements
      Adding ${CMAKE_BINARY_DIR}/pcre into search path for *.h files.
      Needed for find pcre.h (which is generated from pcre.h.in) when
      build directory != source directory.
      66faeaaf
    • Alexander Barkov's avatar
      MDEV-4425 · bb305421
      Alexander Barkov authored
      Adding ${CMAKE_BINARY_DIR}/pcre into search path for *.h files.
      Needed for find pcre.h (which is generated from pcre.h.in) when
      build directory != source directory.
      bb305421
    • Alexander Barkov's avatar
      MDEV-4425 REGEXP enhancements · 5f7d47ed
      Alexander Barkov authored
      Adding pcre_stack_guard to avoid crashes in pcre_compile()
      on a long recursive patterns with parenthesizes:
      
      SELECT a RLIKE '((((...((((x)))...))))';
      5f7d47ed
    • Alexander Barkov's avatar
      MDEV-4425 Regexp enhancements · fb8ea5b3
      Alexander Barkov authored
      Removing pcre.h from the tree, it's generated from pcre.h.in 
      fb8ea5b3
    • Alexander Barkov's avatar
      MDEV-4424 Regexp enhancements · 580f527d
      Alexander Barkov authored
      - Commenting out unused instructions in pcre/CMakeLists.txt
      - Don't print PCRE configuration status by default.
      580f527d
  11. 01 Oct, 2013 3 commits
  12. 30 Sep, 2013 4 commits
    • Alexander Barkov's avatar
    • Alexander Barkov's avatar
      pcre: fixing a test failure in character_sets_dir_basic in this command: · 4345d6ff
      Alexander Barkov authored
      --replace_regex /.prefix.sql.share.charsets[/\]/MYSQL_CHARSETSDIR/
      select @@global.character_sets_dir;
      
      The intention of the '[/\]' part was to replace both slash
      '/' and backslash '\\', so it does not depend on the OS.
      
      The pattern '[/\]' was actually wrong, because ']' is escaped
      and should be considered as a part of the class, instead of
      being a closing bracket for the class. However, due to some bug
      in the old REGEX library it worked fine.
      
      After switching to PCRE, mysqltest correctly complains about unbalaced '[]'.
      The expected correct pattern should be '[/\\]'.
      However, due to some bug in mysqltest, it eats consequetive baskslashes
      in a strange way, so there is no a way to have to consequetive 
      backslashes after unescaping.
      
      Workaround:
      
      using [[:punct:]] as a pattern that matches both slash and backslash,
      which should be fine for this test purposes.
      4345d6ff
    • Alexander Barkov's avatar
      Always include the local copy of pcre.h and pcreposix.h instead of the · 9582f95f
      Alexander Barkov authored
      system installed (if any).
      9582f95f
    • Alexander Barkov's avatar
      pcre: fixing linking error one some systems: · 7fab71a2
      Alexander Barkov authored
      libmysqld.a(pcre_exec.c.o): relocation R_X86_64_32S against
      `_pcre_ucd_stage1' can not be used when making a shared object;
      make[2]: Leaving directory `/mnt/buildbot/build/mariadb-10.0.3'
      recompile with -fPIC
      
      Changing ADD_LIBRARY(pcre) to ADD_CONVENIENCE_LIBRARY(pcre)
      7fab71a2
  13. 27 Sep, 2013 4 commits
  14. 26 Sep, 2013 2 commits
  15. 25 Sep, 2013 3 commits
  16. 24 Sep, 2013 1 commit