1. 08 Jun, 2006 4 commits
  2. 23 May, 2006 2 commits
  3. 22 May, 2006 9 commits
  4. 21 May, 2006 4 commits
  5. 20 May, 2006 4 commits
  6. 19 May, 2006 8 commits
  7. 18 May, 2006 7 commits
  8. 17 May, 2006 2 commits
    • evgen@moonbone.local's avatar
      Fixed bug#19077: A nested materialized derived table is used before being populated. · 1d820585
      evgen@moonbone.local authored
      The convert_constant_item() function converts constant items to ints on
      prepare phase to optimize execution speed. In this case it tries to evaluate
      subselect which contains a derived table and is contained in a derived table. 
      All derived tables are filled only after all derived tables are prepared.
      So evaluation of subselect with derived table at the prepare phase will
      return a wrong result.
      
      A new flag with_subselect is added to the Item class. It indicates that
      expression which this item represents is a subselect or contains a subselect.
      It is set to 0 by default. It is set to 1 in the Item_subselect constructor
      for subselects.
      For Item_func and Item_cond derived classes it is set after fixing any argument
      in Item_func::fix_fields() and Item_cond::fix_fields accordingly.
      The convert_constant_item() function now doesn't convert a constant item
      if the with_subselect flag set in it. 
      1d820585
    • kent@mysql.com's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1-new · 4af84e73
      kent@mysql.com authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0-new
      4af84e73