File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
"database/sql"
14
14
"database/sql/driver"
15
15
"encoding/json"
16
+ "fmt"
16
17
"io"
17
18
"net"
18
19
"strconv"
@@ -104,6 +105,7 @@ func (mc *mysqlConn) Begin() (driver.Tx, error) {
104
105
}
105
106
106
107
func (mc * mysqlConn ) begin (readOnly bool ) (driver.Tx , error ) {
108
+ errLog .Print (fmt .Sprintf ("in mysqlConn.begin %s" , readOnly ))
107
109
if mc .closed .IsSet () {
108
110
errLog .Print (ErrInvalidConn )
109
111
return nil , driver .ErrBadConn
@@ -433,6 +435,7 @@ func (mc *mysqlConn) getSystemVar(name string) ([]byte, error) {
433
435
// finish is called when the query has canceled.
434
436
func (mc * mysqlConn ) cancel (err error ) {
435
437
mc .canceled .Set (err )
438
+ errLog .Print (fmt .Sprintf ("canceling a request and running mc.cleanup(): %s" , err ))
436
439
mc .cleanup ()
437
440
}
438
441
You can’t perform that action at this time.
0 commit comments