• unknown's avatar
    A fix for Bug#14845 "mysql_stmt_fetch returns MYSQL_NO_DATA when · 4ca413e9
    unknown authored
    COUNT(*) is 0" (the test case has been pushed already)
    
    
    sql/sql_cursor.cc:
      Fix a return of an unitialized variable: return_zero_rows
      checks the return value of send_fields and in case it's 1
      doesn't call send_data. This caused creation of an empty result 
      set for the case when there is a cursor against a select with a 
      group function and no matching rows.
    4ca413e9
sql_cursor.cc 19.1 KB