From 6237292f4c567f9ed55b59a73f3a8a72a52b830b Mon Sep 17 00:00:00 2001 From: dengyihao Date: Sat, 13 Jun 2020 05:40:07 +0800 Subject: [PATCH] fixbug TD-562 --- src/kit/taosdemo/taosdemo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index bfedff0d94..4129659281 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -817,7 +817,7 @@ void queryDB(TAOS *taos, char *command) { i--; } - if (i == 0) { + if (code != 0) { fprintf(stderr, "Failed to run %s, reason: %s\n", command, taos_errstr(pSql)); taos_free_result(pSql); -- GitLab