1. 11 Jun, 2010 9 commits
    • Ramil Kalimullin's avatar
      Automerge. · 20e0a9ab
      Ramil Kalimullin authored
      20e0a9ab
    • Ramil Kalimullin's avatar
      Automerge. · d4746b8e
      Ramil Kalimullin authored
      d4746b8e
    • Alexey Kopytov's avatar
      Null merge. · 1ab6c343
      Alexey Kopytov authored
      1ab6c343
    • Alexey Kopytov's avatar
      Manual merge from mysql-5.1-bugteam to mysql-trunk-merge. · eae3b4fe
      Alexey Kopytov authored
      conflicts:
         conflict      mysys/safemalloc.c
         conflict      sql/mysqld.cc
         conflict      sql/sp.cc
         conflict      sql/sql_lex.cc
         conflict      sql/sql_lex.h
         conflict      sql/sql_parse.cc
         conflict      sql/sql_prepare.cc
      eae3b4fe
    • Alexey Kopytov's avatar
      Manual merge from the bugfix tree. · 162e4262
      Alexey Kopytov authored
      conflicts:
         conflict      sql/sql_parse.cc
      162e4262
    • Alexey Kopytov's avatar
      Manual merge from the bugfix tree. · b497e2c6
      Alexey Kopytov authored
      conflicts:
         conflict      sql/sql_parse.cc
      b497e2c6
    • Martin Hansson's avatar
      Merge of fix for bug#53859. · 6d38a625
      Martin Hansson authored
      6d38a625
    • Martin Hansson's avatar
      Bug#53859: Valgrind: opt_sum_query(TABLE_LIST*, List<Item>&, · 5bace3f0
      Martin Hansson authored
      Item*) at opt_sum.cc:305
            
      Queries applying MIN/MAX functions to indexed columns are
      optimized to read directly from the index if all key parts
      of the index preceding the aggregated key part are bound to
      constants by the WHERE clause. A prefix length is also
      produced, equal to the total length of the bound key
      parts. If the aggregated column itself is bound to a
      constant, however, it is also included in the prefix.
      
      Such full search keys are read as closed intervals for
      reasons beyond the scope of this bug. However, the procedure
      missed one case where a key part meant for use as range
      endpoint was being overwritten with a NULL value destined
      for equality checking. In this case the key part was
      overwritten but the range flag remained, causing open
      interval reading to be performed.
      
      Bug was fixed by adding more stringent checking to the
      search key building procedure (matching_cond) and never
      allow overwrites of range predicates with non-range
      predicates.
      
      An assertion was added to make sure open intervals are never
      used with full search keys.
      5bace3f0
    • Davi Arnaut's avatar
      d6e00354
  2. 10 Jun, 2010 10 commits
    • Davi Arnaut's avatar
      Bug#42733: Type-punning warnings when compiling MySQL -- · 53b88296
      Davi Arnaut authored
                  strict aliasing violations.
      
      One somewhat major source of strict-aliasing violations and
      related warnings is the SQL_LIST structure. For example,
      consider its member function `link_in_list` which takes
      a pointer to pointer of type T (any type) as a pointer to
      pointer to unsigned char. Dereferencing this pointer, which
      is done to reset the next field, violates strict-aliasing
      rules and might cause problems for surrounding code that
      uses the next field of the object being added to the list.
      
      The solution is to use templates to parametrize the SQL_LIST
      structure in order to deference the pointers with compatible
      types. As a side bonus, it becomes possible to remove quite
      a few casts related to acessing data members of SQL_LIST.
      53b88296
    • Davi Arnaut's avatar
      Bug#42733: Type-punning warnings when compiling MySQL -- · bb036c93
      Davi Arnaut authored
                 strict aliasing violations.
      
      Essentially, the problem is that large parts of the server were
      developed in simpler times (last decades, pre C99 standard) when
      strict aliasing and compilers supporting such optimizations were
      rare to non-existent. Thus, when compiling the server with a modern
      compiler that uses strict aliasing rules to perform optimizations,
      there are several places in the code that might trigger undefined
      behavior.
      
      As evinced by some recent bugs, GCC does a somewhat good of job
      misoptimizing such code, but on the other hand also gives warnings
      about suspicious code. One problem is that the warnings aren't
      always accurate, yet we can't afford to just shut them off as we
      might miss real cases. False-positive cases are aggravated mostly
      by casts that are likely to trigger undefined behavior.
      
      The solution is to start a cleanup process focused on fixing and
      reducing the amount of strict-aliasing related warnings produced
      by GCC and others compilers. A good deal of noise reduction can
      be achieved by just removing useless casts that are product of
      historical cruft and are likely to trigger undefined behavior if
      dereferenced.
      bb036c93
    • Alexander Nozdrin's avatar
      Auto-merge from mysql-trunk-bugfixing. · 22207652
      Alexander Nozdrin authored
      22207652
    • Alexander Nozdrin's avatar
      Revert a patch for Bug#54334 (Double initialization of mysys mutexes). · b985f884
      Alexander Nozdrin authored
      Revision ID of the patch: marc.alff@oracle.com-20100608124148-lr1ult7lwo75niev
      b985f884
    • Tor Didriksen's avatar
      Merge fix for Bug#53303 from 5.1-bugteam · 5fcfeb08
      Tor Didriksen authored
      text conflict: unittest/examples/Makefile.am
      5fcfeb08
    • Tor Didriksen's avatar
      Backport of Bug#53303 mytap tests should always have a plan() · e3b4d331
      Tor Didriksen authored
      The bug was caused by buffered output. Flushing resolved it.
      We still recommend to allways call plan().
        
      Also fix some compile warnings (formal parameter different from declaration)
      e3b4d331
    • Alexander Nozdrin's avatar
      Auto-merge from mysql-trunk-bugfixing. · ad92ee12
      Alexander Nozdrin authored
      ad92ee12
    • Davi Arnaut's avatar
      d348f121
    • Davi Arnaut's avatar
      2c8fd5fa
    • Davi Arnaut's avatar
      Bug#34236: Various possibly related SSL crashes · b564aa92
      Davi Arnaut authored
      Addendum: Work around a compilation failure on Windows due to
                windows.h not being added to the global namespace.
      b564aa92
  3. 09 Jun, 2010 3 commits
  4. 08 Jun, 2010 14 commits
  5. 07 Jun, 2010 4 commits