Decided to just use the database/sql code because it's simpler/cleaner, but we're still using mymysql as a backend. I could have kept the old code and used ziutek's autoreconnecting interface, but that won't really matter if I make it use one connection per page request.
Changed getting the scan state to avoid memory copies, slice appends, string conversions, and multiple loops by just having the SQL code check for the string prefix to look for.
Removed the (now out of date) test code from sql.go. I should probably do the same with the rest of the files...