1. 10 Jan, 2008 1 commit
    • evgen@moonbone.local's avatar
      filesort.cc: · 830b8f0e
      evgen@moonbone.local authored
        Bug#33675: Usage of an uninitialized memory by filesort in a subquery caused
        server crash.
        Free smaller buffer before allocating bigger one.
      830b8f0e
  2. 09 Jan, 2008 3 commits
  3. 08 Jan, 2008 1 commit
    • evgen@moonbone.local's avatar
      Bug#33675: Usage of an uninitialized memory by filesort in a subquery caused · ce111a0d
      evgen@moonbone.local authored
      server crash.
      
      The filesort implementation has an optimization for subquery execution which
      consists of reusing previously allocated buffers. In particular the call to
      the read_buffpek_from_file function might be skipped when a big enough buffer
      for buffer descriptors (buffpeks) is already allocated. Beside allocating
      memory for buffpeks this function fills allocated buffer with data read from
      disk. Skipping it might led to using an arbitrary memory as fields' data and
      finally to a crash.
      
      Now the read_buffpek_from_file function is always called. It allocates
      new buffer only when necessary, but always fill it with correct data.
      ce111a0d
  4. 07 Jan, 2008 1 commit
  5. 21 Dec, 2007 1 commit
    • gkodinov/kgeorge@macbook.gmz's avatar
      Bug #33256: CREATE ... SELECT creates obsolete table · e4efb4a5
      gkodinov/kgeorge@macbook.gmz authored
       w/ Field_date instead of Field_newdate
        
      Field_date was still used in temp table creation.
      Fixed by using Field_newdate consistently throughout the server
      except when reading tables defined with older MySQL version.
      No test suite is possible because both Field_date and Field_newdate
      return the same values in all the metadata calls. 
      e4efb4a5
  6. 20 Dec, 2007 4 commits
  7. 19 Dec, 2007 1 commit
  8. 18 Dec, 2007 1 commit
  9. 17 Dec, 2007 9 commits
  10. 15 Dec, 2007 4 commits
  11. 14 Dec, 2007 2 commits
    • igor@olga.mysql.com's avatar
      Fixed bug #27848. · f25e30eb
      igor@olga.mysql.com authored
      In a union without braces, the order by at the end is applied to the 
      overall union. It therefore should not interfere with the individual
      select parts of the union.
      
      Fixed by changing our parser rules appropriately.
      f25e30eb
    • mhansson/martin@linux-st28.site's avatar
      Bug#32798: DISTINCT in GROUP_CONCAT clause fails when ordering by a column · cdeecc51
      mhansson/martin@linux-st28.site authored
      with null values
      
      For queries containing GROUP_CONCAT(DISTINCT fields ORDER BY fields), there 
      was a limitation that the DISTINCT fields had to be the same as ORDER BY 
      fields, owing to the fact that one single sorted tree was used for keeping 
      track of tuples, ordering and uniqueness. Fixed by introducing a second 
      structure to handle uniqueness so that the original structure has only to 
      order the result.
      cdeecc51
  12. 13 Dec, 2007 9 commits
  13. 12 Dec, 2007 1 commit
  14. 11 Dec, 2007 2 commits
    • istruewing@stella.local's avatar
      Merge stella.local:/home2/mydev/mysql-5.0-amain · fb93ba7a
      istruewing@stella.local authored
      into  stella.local:/home2/mydev/mysql-5.0-axmrg
      fb93ba7a
    • mhansson/martin@linux-st28.site's avatar
      Bug#32848: Data type conversion bug in union subselects in MySQL 5.0.38 · 867a7865
      mhansson/martin@linux-st28.site authored
      There were two problems when inferring the correct field types resulting from
      UNION queries.
      - If the type is NULL for all corresponding fields in the UNION, the resulting 
        type would be NULL, while the type is BINARY(0) if there is just a single 
        SELECT NULL.
      - If one SELECT in the UNION uses a subselect, a temporary table is created
        to represent the subselect, and the result type defaults to a STRING type,
        hiding the fact that the type was unknown(just a NULL value).
      Fixed by remembering whenever a field was created from a NULL value and pass
      type NULL to the type coercion if that is the case, and creating a string field
      as result of UNION only if the type would otherwise be NULL.
      867a7865