Skip to content

Commit 3725e7f

Browse files
committed
fixup
1 parent 445022a commit 3725e7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

connection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ func (mc *mysqlConn) Query(query string, args []driver.Value) (driver.Rows, erro
344344

345345
func (mc *mysqlConn) query(query string, args []driver.Value) (*textRows, error) {
346346
handleOk := mc.clearResult()
347+
347348
if mc.closed.Load() {
348349
return nil, driver.ErrBadConn
349350
}
350-
351351
if len(args) != 0 {
352352
if !mc.cfg.InterpolateParams {
353353
return nil, driver.ErrSkip

packets.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ func (mc *mysqlConn) writePacket(data []byte) error {
117117
// Write packet
118118
if mc.writeTimeout > 0 {
119119
if err := mc.netConn.SetWriteDeadline(time.Now().Add(mc.writeTimeout)); err != nil {
120-
mc.log(err)
121120
mc.cleanup()
121+
mc.log(err)
122122
return err
123123
}
124124
}

0 commit comments

Comments
 (0)