fixbug TD-562

This commit is contained in:
dengyihao 2020-06-13 05:40:07 +08:00
parent 2eb8cc45e1
commit 6237292f4c
1 changed files with 1 additions and 1 deletions

View File

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