• unknown's avatar
    select_found.result, select_found.test: · 25c2d1ad
    unknown 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.
    
    
    sql/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.
    mysql-test/t/select_found.test:
      Added a test case for bug #7945.
    mysql-test/r/select_found.result:
      Added a test case for bug #7945.
    25c2d1ad
select_found.test 9.52 KB