buffer: return io.ErrUnexpectedEOF

and some small optimizations
Merge pull request #269 from go-sql-driver/buffer

buffer: return io.ErrUnexpectedEOF