• igor@rurik.mysql.com's avatar
    select_found.result, select_found.test: · 8527f256
    igor@rurik.mysql.com authored
      Added a test case for bug #7945.
    sql_select.cc:
      Fixed bug #7945. If DISTINCT is used only with constants
      in a query with GROUP BY, we can apply an optimization
      that set LIMIT to 1 only in the case when there is 
      no SQL_CALC_FOUND_ROWS.
    8527f256
select_found.result 9.86 KB