From 80c1d83f448d040a1a74e25fec211058e0b4d099 Mon Sep 17 00:00:00 2001 From: Shuaipeng Yu Date: Wed, 21 Aug 2019 10:39:29 +0800 Subject: [PATCH] executor: fix error check in EvalSubquery Signed-off-by: Shuaipeng Yu --- executor/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/executor.go b/executor/executor.go index 675f25a9c93ab..97e6b24e2a092 100644 --- a/executor/executor.go +++ b/executor/executor.go @@ -905,7 +905,7 @@ func init() { e := &executorBuilder{is: is, ctx: sctx} exec := e.build(p) if e.err != nil { - return rows, err + return rows, e.err } err = exec.Open(ctx) defer terror.Call(exec.Close)