提交 b4d3d143 编写于 作者: D dapan1121

fix: invalid head file

上级 518d60ad
#include "../../include/client/taos.h"
#include "taoserror.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
......@@ -67,10 +65,9 @@ int main(int argc, char* argv[]) {
printf("%s\n", "begin taos_insert_lines");
int64_t begin = getTimeInUs();
TAOS_RES *res = taos_schemaless_insert(taos, lines, lineNum, TSDB_SML_LINE_PROTOCOL, TSDB_SML_TIMESTAMP_MILLI_SECONDS);
int code = taos_errno(res);
taos_free_result(res);
int64_t end = getTimeInUs();
printf("code: %d, %s. time used: %" PRId64 "\n", code, tstrerror(code), end-begin);
printf("code: %s. time used: %" PRId64 "\n", taos_errstr(res), end-begin);
taos_free_result(res);
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册