From 33f503474b89ec1d05df98abe6925164575d30b9 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 19 Apr 2021 11:40:50 +0800 Subject: [PATCH] [td-2859] fix bug found by regress test. --- src/client/src/tscSubquery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index da743e1597..652551e34d 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -2229,7 +2229,7 @@ void tscFirstRoundRetrieveCallback(void* param, TAOS_RES* tres, int numOfRows) { } } - if (!pRes->completed) { + if (!pRes->completed && numOfRows > 0) { taos_fetch_rows_a(tres, tscFirstRoundRetrieveCallback, param); return; } -- GitLab