1. 12 Feb, 2008 1 commit
    • kaa@mbp.'s avatar
      Fix for bug #33389: Selecting from a view into a table from within SP · 97c105cc
      kaa@mbp. authored
                          or trigger crashes server
      
      Under some circumstances a combination of VIEWs, subselects with outer
      references and PS/SP/triggers could lead to use of uninitialized memory
      and server crash as a result.
      
      Fixed by changing the code in Item_field::fix_fields() so that in cases
      when the field is a VIEW reference, we first check whether the field
      is also an outer reference, and mark it appropriately before returning.
      97c105cc
  2. 20 Jan, 2008 1 commit
  3. 18 Jan, 2008 2 commits
  4. 17 Jan, 2008 1 commit
  5. 14 Jan, 2008 1 commit
    • mhansson/martin@linux-st28.site's avatar
      Bug#33143: Incorrect ORDER BY for ROUND()/TRUNCATE() result · effe27e3
      mhansson/martin@linux-st28.site authored
      The ROUND(X, D) function would change the Item::decimals field during
      execution to achieve the effect of a dynamic number of decimal digits.
      This caused a series of bugs:
      Bug #30617:Round() function not working under some circumstances in InnoDB
      Bug #33402:ROUND with decimal and non-constant cannot round to 0 decimal places
      Bug #30889:filesort and order by with float/numeric crashes server
      Fixed by never changing the number of shown digits for DECIMAL when
      used with a nonconstant number of decimal digits.
      effe27e3
  6. 12 Jan, 2008 1 commit
  7. 11 Jan, 2008 3 commits
  8. 10 Jan, 2008 5 commits
  9. 09 Jan, 2008 3 commits
  10. 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
  11. 07 Jan, 2008 1 commit
  12. 24 Dec, 2007 1 commit
    • kaa@polly.(none)'s avatar
      Fix for bug #33305: Test case in 'skip_grants' file need dynamic loading · 578b3632
      kaa@polly.(none) authored
                          to be compiled in
      
      The problem was that on a statically built server an attempt to create
      a UDF resulted in a different, but reasonable error ("Can't open shared
      library" instead of "UDFs are unavailable with the --skip-grant-tables
      option"), which caused a failure for the test case for bug #32020.
      
      Fixed by moving the test case for bug #32020 from skip_grants.test to a
      separate test to ensure that it is only run when the server is built
      with support for dynamically loaded libraries.
      578b3632
  13. 21 Dec, 2007 3 commits
  14. 20 Dec, 2007 5 commits
  15. 19 Dec, 2007 1 commit
  16. 18 Dec, 2007 1 commit
  17. 17 Dec, 2007 9 commits