ruby-mysql
ruby-mysql copied to clipboard
Seek to beginning of result set before iterating
Hi there...
I noticed that when calling #count on a result set and then calling #each_hash (or #each), it would appear that the set was empty. This PR is my solution to that, and I'm currently using it in production.
Let me know what you think!
Thanks,
Matt