From bd4f77a454464ed450de828e0c72f8417b205eb5 Mon Sep 17 00:00:00 2001 From: yangming Date: Tue, 19 Apr 2022 15:31:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20delete=20update=20?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=E7=8A=B6=E6=80=81=E7=A0=81=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy/plan/plan_delete.go | 2 +- proxy/plan/plan_update.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/plan/plan_delete.go b/proxy/plan/plan_delete.go index 17835808..1413e283 100644 --- a/proxy/plan/plan_delete.go +++ b/proxy/plan/plan_delete.go @@ -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) diff --git a/proxy/plan/plan_update.go b/proxy/plan/plan_update.go index 86ca3277..d5a2dbee 100644 --- a/proxy/plan/plan_update.go +++ b/proxy/plan/plan_update.go @@ -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)