From 5d38440cda8af3a542bd4a02086f29c226abfb97 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 17 Dec 2021 16:53:14 +0800 Subject: [PATCH] [td-11818] refactor. --- tools/shell/src/shellEngine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/shell/src/shellEngine.c b/tools/shell/src/shellEngine.c index 3a6cbd259e..1ad61ee2b0 100644 --- a/tools/shell/src/shellEngine.c +++ b/tools/shell/src/shellEngine.c @@ -341,7 +341,8 @@ void shellRunCommandOnServer(TAOS *con, char command[]) { return; } - if (true /*!tscIsUpdateQuery(pSql)*/) { // select and show kinds of commands + TAOS_FIELD* pFields = taos_fetch_fields(pSql); + if (pFields != NULL) { // select and show kinds of commands int error_no = 0; int numOfRows = shellDumpResult(pSql, fname, &error_no, printMode);