• igor@olga.mysql.com's avatar
    Fixed bug #27257: queries containing subqueries with COUNT(*) · 19da4d39
    igor@olga.mysql.com authored
    aggregated in outer context returned wrong results.
    This happened only if the subquery did not contain any references
    to outer fields.
    As there were no references to outer fields the subquery erroneously
    was taken for non-correlated one.
    Now any set function aggregated in outer context makes the subquery
    correlated.
    19da4d39
subselect.test 104 KB