1. 28 Sep, 2006 1 commit
    • evgen@moonbone.local's avatar
      Fixed bug#20503: Server crash due to the ORDER clause not taken into account · e0461067
      evgen@moonbone.local authored
      while space allocation
      
      Under some circumstances DISTINCT clause can be converted to grouping.
      In such cases grouping is performed by all items in the select list.
      If an ORDER clause is present then items from it is prepended to group list.
      But the case with ORDER wasn't taken into account when allocating the
      array for sum functions. This leads to memory corruption and crash.
      
      The JOIN::alloc_func_list() function now allocates additional space if there
      is an ORDER by clause is specified and DISTINCT -> GROUP BY optimization is
      possible.
      e0461067
  2. 26 Sep, 2006 1 commit
  3. 24 Sep, 2006 2 commits
  4. 23 Sep, 2006 5 commits
  5. 22 Sep, 2006 2 commits
  6. 21 Sep, 2006 9 commits
  7. 20 Sep, 2006 5 commits
  8. 19 Sep, 2006 4 commits
  9. 18 Sep, 2006 9 commits
  10. 17 Sep, 2006 1 commit
  11. 16 Sep, 2006 1 commit
    • igor@rurik.mysql.com's avatar
      Fixed bug #21493: crash for the second execution of a function · d3d3cef8
      igor@rurik.mysql.com authored
      containing a select statement that uses an aggregating IN subquery.
      Added a parameter to the function fix_prepare_information 
      to restore correctly the having clause for the second execution.
      Saved andor structure of the having conditions at the proper moment
      before any calls of split_sum_func2 that could modify the having structure
      adding new Item_ref objects. (These additions, are produced not with 
      the statement mem_root, but rather with the execution mem_root.)
      d3d3cef8