saltstack/salt — pull request #3324 by pcrews (2013-01-18 23:34:58+00:00)
Title: Modify the mysql module to be more consistent on SELECT queries

Modified the mysql.py module to alter the behavior when 0 rows are returned. This is because some SELECT statements might return 0 rows and the difference in returned verbiage is problematic / requires that the developer code for either 'rows affected' or 'rows returned', which is tedious. We alter the code so that if the query is a SELECT, we always describe the results as 'rows returned'. If the query does not start with that, then we use 'rows affected'