1. 20 Jun, 2016 3 commits
    • Jan Lindström's avatar
      Merge commit from 10.1: · c3c4d55e
      Jan Lindström authored
      commit 4165961d
      Author:	Sergei Golubchik <serg@mariadb.org>  Fri Oct 16 02:07:06 2015
      Committer:	Sergei Golubchik <serg@mariadb.org>  Mon Nov 16 08:55:55 2015
      
      disable innodb on sol10-64
      
      because buildbot config invokes BUILD/compile-solaris-amd64
      with the --extra-args=--without-plugin-innodb argument, but
      BUILD/compile-solaris-amd64 doesn't take arguments and doesn't
      invoke configure.pl, so this extra-args is lost.
      c3c4d55e
    • Alexander Barkov's avatar
      MDEV-10020 InnoDB NOT IN Query Crash When One Item Is NULL · a80dbe06
      Alexander Barkov authored
      The problem was that the loop in get_func_mm_tree()
      accessed improperly initialized instances of String,
      which resided in the bzero'ed part of the in_vector::base array.
      
      Strings in in_vector::base are originally initialized
      in Item_func_in::fix_length_and_dec(),
      in in_vector::in_vector() using sql_calloc,
      rather than using a String constructor, so their str_charset
      members are originally equal to NULL.
      
      Strings in in_vector::base are later initialized
      to good values in Item_func_in::fix_length_and_dec(),
      using array->set(), in this code:
      
            uint j=0;
            for (uint i=1 ; i < arg_count ; i++)
            {
              array->set(j,args[i]);
              if (!args[i]->null_value)                      // Skip NULL values
                j++;
              else
                have_null= 1;
            }
            if ((array->used_count= j))
              array->sort();
      
      NULLs are not taken into account, so at the end
      array->used_count can be smaller than array->count.
      
      This patch fixes the loop in opt_range.cc, in get_func_mm_tree(),
      to access only properly initialized elements in in_vector::base,
      preventing access to its bzero'ed non-initialized tail.
      a80dbe06
    • Jan Lindström's avatar
      MDEV-8633: information_schema.index_statistics doesn't delete · 70ad689b
      Jan Lindström authored
      item when drop table indexes or drop table;
      
      Problem was that table and index statistics is removed from
      persistent tables but not from memory cache. Added functions
      to remove table and index statistics from memory cache.
      70ad689b
  2. 18 Jun, 2016 1 commit
  3. 16 Jun, 2016 3 commits
  4. 08 Jun, 2016 2 commits
  5. 28 May, 2016 1 commit
  6. 27 May, 2016 2 commits
  7. 24 May, 2016 1 commit
  8. 30 Apr, 2016 1 commit
  9. 28 Apr, 2016 2 commits
    • Vladislav Vaintroub's avatar
      9eba34f0
    • Sergey Vojtovich's avatar
      MDEV-9988 - Insert cast to suppress -Wdynamic-class-memaccess · 94bad73d
      Sergey Vojtovich authored
      Clang warns on this code because it is memsetting over a vtable contained in a
      struct in the best_positions array. The diagnostic text is:
      
      mariadb/sql/sql_select.cc:24462:10: error: destination for this 'memset' call is
      a pointer to class containing a dynamic class 'Duplicate_weedout_picker'; vtable
      pointer will be overwritten [-Werror,-Wdynamic-class-memaccess]
        memset(best_positions, 0, sizeof(POSITION) * (table_count + 1));
        ~~~~~~ ^
      
      Patch contributed by David Gow.
      94bad73d
  10. 27 Apr, 2016 2 commits
  11. 26 Apr, 2016 13 commits
  12. 25 Apr, 2016 4 commits
  13. 24 Apr, 2016 5 commits
    • Olivier Bertrand's avatar
      - Fix an error causing MYSQL table to fail saying "no result set" · 26adbb2d
      Olivier Bertrand authored
        when joining a table to a MYSQL indexed table.
        modified:   storage/connect/myconn.cpp
        modified:   storage/connect/myconn.h
        modified:   storage/connect/tabmysql.cpp
      
      - Add more tests to the mysql_index.test file
        modified:   storage/connect/mysql-test/connect/r/mysql_index.result
        modified:   storage/connect/mysql-test/connect/t/mysql_index.test
      
      - Fix and error causing remote indexing to fail when for not unique index.
        Was experienced with MYSQL, ODBC and JDBC tables.
        modified:   storage/connect/connect.cc
      
      - Fix MDEV-9966 (zero lines returned)
        modified:   storage/connect/ha_connect.cc
        modified:   storage/federatedx/ha_federatedx.cc
      26adbb2d
    • Sergey Vojtovich's avatar
      MDEV-9975 - main.partition_innodb_plugin fails sporadically · 2b7573ec
      Sergey Vojtovich authored
      Fixed wait condition to wait for InnoDB to actually acquire row locks instead
      of waiting for thread to enter "Searching rows for update" state (which happens
      earlier).
      
      Also use default wait timeout, 2 seconds can be too few for threads to enter
      appropriate state.
      2b7573ec
    • Sergei Golubchik's avatar
      MDEV-9617 solaris sparc build fails on 10.0 · ce38addd
      Sergei Golubchik authored
      Spider:
        SunPro only supports array declarations with
        constant size. Spider already has a workaround for
        that, inside #ifdef _MSC_VER. Enable this code
        also for __SUNPRO_CC
      
      Connect:
        Don't use anonymous union.
        Cast for mmap.
        Don't pass gcc-ish -W... options to SunPro
      ce38addd
    • Sergei Golubchik's avatar
      tests -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci · 7b58fd5e
      Sergei Golubchik authored
      This fixes:
      MDEV-7693 MariaDB - mysql-test - SUITE:funcs_1 - funcs_1.is_tables_mysql is failing on TABLE_COLLATION /DATABASE_COLLATION
      MDEV-8487 mysql-test - main.information_schema 'xtradb' fails
      MDEV-8486 mysql-test - main.bootstrap fails
      7b58fd5e
    • Sergei Golubchik's avatar
      MDEV-8480 mysql-test - main.func_encrypt_ucs2 fails if FIPS=1 · 0ee919b8
      Sergei Golubchik authored
      disable the test when DES doesn't work
      0ee919b8