Update affected_rows after calling mysql_next_result
#1412
Merged
affected_rows after calling mysql_next_result
#1412