• unknown's avatar
    Fix bug#11482 4.1.12 produces different resultset for a complex query · 6b08ac6b
    unknown authored
      than in previous 4.1.x
    
    Wrongly applied optimization were adding NOT NULL constraint which results in
    rejecting valid rows and reduced result set.
    
    The problem was that add_notnull_conds() while checking subquery were adding
    NOT NULL constraint to left joined table, to which, normally, optimization 
    don't have to be applied.
    
    
    sql/sql_select.cc:
      Fix bug #11482 Wrongly applied optimization was erroneously rejecting valid rows
      Constraint were added to optimization appliance test.
    mysql-test/t/select.test:
      Test case for bug #11482  Wrongly applied optimization was erroneously rejecting valid rows
    mysql-test/r/select.result:
      Test case for bug #11482  Wrongly applied optimization was erroneously rejecting valid rows
    6b08ac6b
select.result 64.4 KB