dizzyd/erlang-mysql-driver — pull request #14 by mlewis033 (2012-06-07 00:49:55+00:00)
Title: some additional error handling

Hi!

I found that the driver was throwing an error in get_rows when trying to split an LCB with length 255 (error packet header). This happened for me when selecting sql functions that raise errors.

While I was in there, I added error packet parsing of Code (and SqlState if version 4_1) which get written to new fields errcode and errsqlstate in the #mysql_result rec.

thanks,
Mike