Skip to content

Commit

Permalink
fix: check err != nil but return a nil value error errRet
Browse files Browse the repository at this point in the history
Signed-off-by: alingse <[email protected]>
  • Loading branch information
alingse authored and gongna-au committed Dec 30, 2024
1 parent 727bca2 commit fb0925b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/server/executor_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (se *SessionExecutor) doMultiStmts(reqCtx *util.RequestContext, sql string)
if err = se.session.writeResponse(response); err != nil {
log.Warn("session write response error, error: %v", err)
se.session.Close()
return r, errRet
return r, err
}
}
}
Expand Down

0 comments on commit fb0925b

Please sign in to comment.