Fix bug on multiple result set. Thanks jesper

There was a bug when a query returns more than result packets.
For example store procedures calls returns #result_packet{} followed
by #ok_packet{}.   We were lossing data after the first result set.

Thanks to jesper.louis.andersen@gmail.com for pointing this out.
Add new test case