[td-225] set the correct object for extracting error msg
This commit is contained in:
parent
259928d4de
commit
3867d5e863
|
@ -310,7 +310,7 @@ void shellRunCommandOnServer(TAOS *con, char command[]) {
|
|||
if (error_no == 0) {
|
||||
printf("Query OK, %d row(s) in set (%.6fs)\n", numOfRows, (et - st) / 1E6);
|
||||
} else {
|
||||
printf("Query interrupted (%s), %d row(s) in set (%.6fs)\n", taos_errstr(con), numOfRows, (et - st) / 1E6);
|
||||
printf("Query interrupted (%s), %d row(s) in set (%.6fs)\n", taos_errstr(pSql), numOfRows, (et - st) / 1E6);
|
||||
}
|
||||
} else {
|
||||
int num_rows_affacted = taos_affected_rows(pSql);
|
||||
|
|
Loading…
Reference in New Issue