[td-11818] refactor.

This commit is contained in:
Haojun Liao 2021-12-17 16:53:14 +08:00
parent 4383b4d66b
commit 5d38440cda
1 changed files with 2 additions and 1 deletions

View File

@ -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);