ruby-mysql icon indicating copy to clipboard operation
ruby-mysql copied to clipboard

Seek to beginning of result set before iterating

Open mattparlane opened this issue 9 years ago • 0 comments

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

mattparlane avatar Mar 30 '16 06:03 mattparlane