1. 10 Jul, 2006 1 commit
    • evgen@moonbone.local's avatar
      Fixed bug#16302: Quantified subquery without any tables gives wrong results · d3418971
      evgen@moonbone.local authored
      The ALL/ANY subqueries are the subject of MIN/MAX optimization. The matter
      of this optimization is to embed MIN() or MAX() function into the subquery
      in order to get only one row by which we can tell whether the expression
      with ALL/ANY subquery is true or false.
      But when it is applied to a subquery like 'select a_constant' the reported bug
      occurs. As no tables are specified in the subquery the do_select() function 
      isn't called for the optimized subquery and thus no values have been added 
      to a MIN()/MAX() function and it returns NULL instead of a_constant.
      This leads to a wrong query result.
      
      For the subquery like 'select a_constant' there is no reason to apply
      MIN/MAX optimization because the subquery anyway will return at most one row.
      Thus the Item_maxmin_subselect class is more appropriate for handling such
      subqueries.
      
      The Item_in_subselect::single_value_transformer() function now checks
      whether tables are specified for the subquery. If no then this subselect is
      handled like a UNION using an Item_maxmin_subselect object.
      d3418971
  2. 23 Jun, 2006 1 commit
    • bar@mysql.com's avatar
      Bug#11228: DESC shows arbitrary column as "PRI" · cfb08851
      bar@mysql.com authored
        An UNIQUE KEY consisting of NOT NULL columns
        was displayed as PRIMARY KEY in "DESC t1".
        According to the code, that was intentional
        behaviour for some reasons unknown to me.
        This code was written before bitkeeper time,
        so I cannot check who and why made this.
        After discussing on dev-public, a decision
        was made to remove this code
      cfb08851
  3. 22 Jun, 2006 1 commit
    • kent@mysql.com's avatar
      mysql.spec.sh: · ef2860e8
      kent@mysql.com authored
        Disable the simplistic auto dependency scan for test/bench (bug#20078)
      ef2860e8
  4. 21 Jun, 2006 6 commits
  5. 20 Jun, 2006 5 commits
  6. 19 Jun, 2006 9 commits
  7. 18 Jun, 2006 1 commit
  8. 17 Jun, 2006 3 commits
  9. 16 Jun, 2006 3 commits
  10. 15 Jun, 2006 5 commits
  11. 14 Jun, 2006 5 commits