From ce8bc20b1daedc1aa2f1e4e7e28ff20e97f92030 Mon Sep 17 00:00:00 2001 From: Donghang Lin Date: Fri, 20 Sep 2019 13:29:50 -0700 Subject: [PATCH] fix error handling during querying result rows --- client/resp.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/resp.go b/client/resp.go index 16b25935d..f6a445201 100644 --- a/client/resp.go +++ b/client/resp.go @@ -317,6 +317,10 @@ func (c *Conn) readResultRows(result *Result, isBinary bool) (err error) { break } + if data[0] == ERR_HEADER { + return c.handleErrorPacket(data) + } + result.RowDatas = append(result.RowDatas, data) }