From f5ae9292385f7b236460da6d47255df381214985 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Mon, 1 Feb 2021 15:57:50 +0800 Subject: [PATCH] [TD-2402]: set rows <- 1 constantly when update http sql return success --- src/plugins/http/src/httpRestJson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/http/src/httpRestJson.c b/src/plugins/http/src/httpRestJson.c index baa61117be..a620625d25 100644 --- a/src/plugins/http/src/httpRestJson.c +++ b/src/plugins/http/src/httpRestJson.c @@ -35,7 +35,7 @@ void restBuildSqlAffectRowsJson(HttpContext *pContext, HttpSqlCmd *cmd, int32_t // data row array end httpJsonToken(jsonBuf, JsonArrEnd); - cmd->numOfRows = affect_rows; + cmd->numOfRows = 1; } void restStartSqlJson(HttpContext *pContext, HttpSqlCmd *cmd, TAOS_RES *result) { -- GitLab