Skip to content

Commit

Permalink
Merge pull request XiaoMi#214 from XiaoMi/dev
Browse files Browse the repository at this point in the history
修复 delete update 语句状态码返回错误
  • Loading branch information
xiyangxixian authored Apr 19, 2022
2 parents 27bb343 + bd4f77a commit 9e16060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion proxy/plan/plan_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (p *DeletePlan) ExecuteIn(reqCtx *util.RequestContext, sess Executor) (*mys

rs, err := sess.ExecuteSQLs(reqCtx, sqls)
if err != nil {
return nil, fmt.Errorf("execute in UpdatePlan error: %v", err)
return nil, err
}

r, err := MergeExecResult(rs)
Expand Down
2 changes: 1 addition & 1 deletion proxy/plan/plan_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *UpdatePlan) ExecuteIn(reqCtx *util.RequestContext, sess Executor) (*mys

rs, err := sess.ExecuteSQLs(reqCtx, sqls)
if err != nil {
return nil, fmt.Errorf("execute in UpdatePlan error: %v", err)
return nil, err
}

r, err := MergeExecResult(rs)
Expand Down

0 comments on commit 9e16060

Please sign in to comment.