tmtm / ruby-mysql

MySQL connector for Ruby. pure Ruby version.
MIT License
143 stars 34 forks source link

Update packet.rb #23

Open steveg-h opened 11 years ago

steveg-h commented 11 years ago

eof? method can fail to recognise EOF, possibly depending on encodings. By explicitly unpacking the packet, the EOF packet first byte is always correctly recognised