Update go-sql-driver/mysql package (#7019)

This commit is contained in:
Krishnan Parthasarathi
2018-12-29 21:59:03 +05:30
committed by Nitish Tiwari
parent f24c017e9a
commit 75cd4201b0
20 changed files with 2008 additions and 801 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ type mysqlTx struct {
}
func (tx *mysqlTx) Commit() (err error) {
if tx.mc == nil || tx.mc.netConn == nil {
if tx.mc == nil || tx.mc.closed.IsSet() {
return ErrInvalidConn
}
err = tx.mc.exec("COMMIT")
@@ -22,7 +22,7 @@ func (tx *mysqlTx) Commit() (err error) {
}
func (tx *mysqlTx) Rollback() (err error) {
if tx.mc == nil || tx.mc.netConn == nil {
if tx.mc == nil || tx.mc.closed.IsSet() {
return ErrInvalidConn
}
err = tx.mc.exec("ROLLBACK")