1. 05 Feb, 2009 8 commits
    • Sergey Vojtovich's avatar
      BUG#39185 - Cardinality for merge tables calculated incorrectly. · 0acdf23f
      Sergey Vojtovich authored
      Every subsequent query to a merge table with indexes was lowering
      down cardinality.
      
      The problem was that key statistics was not cleared when merge
      children were detached. Causing next attach children perform
      incremental key statistics calculation.
      
      Fixed by clearing key statistics when attaching first child.
      0acdf23f
    • Gleb Shchepa's avatar
      Bug #39265: fix for the bug 33699 should be reverted · 3d543dd1
      Gleb Shchepa authored
      Documented behaviour was broken by the patch for bug 33699
      that actually is not a bug.
      
      This fix reverts patch for bug 33699 and reverts the
      UPDATE of NOT NULL field with NULL query to old
      behavior.
      3d543dd1
    • Gleb Shchepa's avatar
      49a35c66
    • Gleb Shchepa's avatar
      Bug #42037: Queries containing a subquery with DISTINCT and · 23fb47a3
      Gleb Shchepa authored
                  ORDER BY could cause a server crash
      
      Dependent subqueries like
      
        SELECT COUNT(*) FROM t1, t2 WHERE t2.b
         IN (SELECT DISTINCT t2.b FROM t2 WHERE t2.b = t1.a)
      
      caused a memory leak proportional to the
      number of outer rows.
      
      
      The make_simple_join() function has been modified to
      JOIN class method to store join_tab_reexec and
      table_reexec values in the parent join only
      (make_simple_join of tmp_join may access these values
      via 'this' pointer of the parent JOIN).
      
      NOTE: this patch doesn't include standard test case (this is
      "out of memory" bug). See bug #42037 page for test cases.
      23fb47a3
    • Ramil Kalimullin's avatar
      Fix for bug#42014: Crash, name_const with collate · 909d29ee
      Ramil Kalimullin authored
      Problem: some queries using NAME_CONST(.. COLLATE ...)
      lead to server crash due to failed type cast.
      
      Fix: return the underlying item's type in case of
      NAME_CONST(.. COLLATE ...) to avoid wrong casting.
      909d29ee
    • Alexey Botchkov's avatar
      merging · 9404e88d
      Alexey Botchkov authored
      9404e88d
    • Ramil Kalimullin's avatar
      Auto-merge · fd5084f6
      Ramil Kalimullin authored
      fd5084f6
    • Alexey Botchkov's avatar
      Bug#37995 Error message truncation in test "innodb" in embedded mode. · cf0d0a5e
      Alexey Botchkov authored
         code backported from 6.0
      
      
      per-file messages:
        include/my_global.h
          Remove SC_MAXWIDTH. This is unused and irrelevant nowadays.
        include/my_sys.h
          Remove errbuf declaration and unused definitions.
        mysys/my_error.c
          Remove errbuf definition and move and adjust ERRMSGSIZE.
        mysys/my_init.c
          Declare buffer on the stack and use my_snprintf.
        mysys/safemalloc.c
          Use size explicitly. It's more than enough for the message at hand.
        sql/sql_error.cc
          Use size explicitly. It's more than enough for the message at hand.
        sql/sql_parse.cc
          Declare buffer on the stack. Use my_snprintf as it will result in
          less stack space being used than by a system provided sprintf --
          this allows us to put the buffer on the stack without causing much
          trouble. Also, the use of errbuff here was not thread-safe as the
          function can be entered concurrently from multiple threads.
        sql/sql_table.cc
          Use MYSQL_ERRMSG_SIZE. Extra space is not needed as my_snprintf will
          nul terminate strings.
        storage/myisam/ha_myisam.cc
      Use MYSQL_ERRMSG_SIZE.
        sql/share/errmsg.txt
          Error message truncation in test "innodb" in embedded mode
          filename in the error message can safely take up to 210 symbols.
      cf0d0a5e
  2. 04 Feb, 2009 18 commits
  3. 03 Feb, 2009 4 commits
    • Davi Arnaut's avatar
      Bug#40536: SELECT is blocked by INSERT DELAYED waiting on · bc03c9ef
      Davi Arnaut authored
                 upgrading lock, even with low_priority_updates
      
      The problem is that there is no mechanism to control whether a
      delayed insert takes a high or low priority lock on a table.
      
      The solution is to modify the delayed insert thread ("handler")
      to take into account the global value of low_priority_updates
      when taking table locks. The value of low_priority_updates is
      retrieved when the insert delayed thread is created and will
      remain the same for the duration of the thread.
      bc03c9ef
    • Matthias Leich's avatar
      Merge 5.0 -> 5.1 · 449bfbd7
      Matthias Leich authored
      + fix wrong resultfile have_outfile.require
      449bfbd7
    • Staale Smedseng's avatar
      Bug #41580 opt_threads option is not used anywhere at all · d45e2f45
      Staale Smedseng authored
      Option opt_threads is deprecated in 5.1, and a warning is
      printed when used. Will remove in 6.0.
      d45e2f45
    • Alfranio Correia's avatar
      BUG#42445 Warning messages in innobase/handler/ha_innodb.cc · 70c94f36
      Alfranio Correia authored
            
      There was a type casting problem in the storage/innobase/handler/ha_innodb.cc,
      (int ha_innobase::write_row(...)). Innobase uses has an internal error variable
      of type 'ulint' while mysql uses an 'int'. 
            
      To fix the problem the function manipulates an error variable of
      type 'ulint' and only casts it into 'int' when needs to return the value.
      70c94f36
  4. 02 Feb, 2009 10 commits
    • Patrick Crews's avatar
      merge 5.0 -> 5.1 · 6fb2ba1c
      Patrick Crews authored
      6fb2ba1c
    • Patrick Crews's avatar
      Bug#39369: execution of "variables.test" with "check-testcases" show differences. · ed5ee58b
      Patrick Crews authored
      The original symptoms of this bug have been fixed as a consequence of other bug fixes.
      Taking this time to correct some formatting, such as replacing error numbers with names.
      Beginning this with 5.0
      ed5ee58b
    • Serge Kozlov's avatar
      Bug#38603: · 36b12d88
      Serge Kozlov authored
      The patch adds restart of mysql server and replacing of binlog file 
      when mysql server is stopped.
      36b12d88
    • Matthias Leich's avatar
      1. Slice of fix for Bug#42003 tests missing the disconnect of connections <> default · 7da691c9
      Matthias Leich authored
         - If missing: add "disconnect <session>"
         - If physical disconnect of non "default" sessions is not finished
           at test end: add routine which waits till this happened
      + additional improvements like
        - remove superfluous files created by the test
        - replace error numbers by error names
        - remove trailing spaces, replace tabs by spaces
        - unify writing of bugs within comments
        - correct comments
        - minor changes of formatting
      Modifications according to the code review are included.
      Fixed tests:
      grant2
      grant3
      lock_tables_lost_commit
      mysqldump
      openssl_1
      outfile
      7da691c9
    • Andrei Elkin's avatar
      Bug #41732 rpl_ndb_circular_2ch needs an updated configuration file · 176a7881
      Andrei Elkin authored
      There are two issues: 
            1. 6.0 uses the obsolate master-*** server options;
            2. the test is not deterministic in that although master vs slave consistency is
               fine, two runs of the test can have different results. The reason of the
               non-determinism is the combination of 
               a chosen way to demo results and the ndb_autoincrement_prefetch_sz feature.
      
      The current patch fixes the 2nd issue by putting out results via diff_table macro
      instead of the former run-sensitive method.
      The 1st issue is going to be fixed by a separate patch to 6.0.
      176a7881
    • Tatiana A. Nurnberg's avatar
      auto-merge · ba1b30ab
      Tatiana A. Nurnberg authored
      ba1b30ab
    • Alexander Barkov's avatar
      Bug#41084 full-text index added to custom UCA collation not working · a491bcc4
      Alexander Barkov authored
      Problem:
      Custom UCA collations didn't set the MY_CS_STRNXFRM flag,
      which resulted in "prefix_search" method instead of
      the required "seq_search".
      
      Problem2: (not metioned in the bug report)
      Custom UCA collations didn't also set the MY_CS_UNICODE flag,
      so an attempt to compare a column with a custom UCA collation
      to another column with a non-Unicode character set led to
      the "illegal mix of collation" error.
      
      Fix:
      the two missing flags was added into collation initialization.
      
        Upgrade:
      
        - All fulltext indexes with custom UCA collations should be rebuilt.
      
        - Non-fulltext custom UCA indexes should likely be rebuild as well.
      a491bcc4
    • Tatiana A. Nurnberg's avatar
      auto-merge · 337bf31e
      Tatiana A. Nurnberg authored
      337bf31e
    • Serge Kozlov's avatar
      post-merge push with patch for rpl_ndb_log · b6542a37
      Serge Kozlov authored
      b6542a37
    • Serge Kozlov's avatar
      Post-merge patch for extra/rpl_test/rpl_log.test: · 01e368d1
      Serge Kozlov authored
      Remove size of binlog file from SHOW BINARY LOGS. 
      Changing size of binlog file is an affect of adding or removing events to/from
      binlog and it can be checked in next command of test: SHOW BINLOG EVENTS.
      For SHOW BINARY LOGS statement enough to show the list of file names.
      01e368d1