fix: doc demo code

This commit is contained in:
factosea 2025-01-14 15:20:05 +08:00
parent 155e3ae413
commit 2511a15d71
1 changed files with 2 additions and 1 deletions

View File

@ -58,12 +58,13 @@ static int DemoInsertData() {
taos_cleanup();
return -1;
}
taos_free_result(result);
// you can check affectedRows here
int rows = taos_affected_rows(result);
fprintf(stdout, "Successfully inserted %d rows into power.meters.\n", rows);
taos_free_result(result);
// close & clean
taos_close(taos);
taos_cleanup();