Closed teckick closed 3 years ago
Close bad conn when execute SQL error without txn.
If the err is gomysql.ErrBadConn or driver.ErrBadConn, close the conn, else putback the conn.
LGTM
What problem does this PR solve?
Close bad conn when execute SQL error without txn.
What is changed and how it works?
If the err is gomysql.ErrBadConn or driver.ErrBadConn, close the conn, else putback the conn.