未验证 提交 fdd7358f 编写于 作者: H haojun Liao 提交者: GitHub

Merge pull request #5877 from taosdata/hotfix/TD-3897

[TD-3897]timestamp not work with now filter
...@@ -435,11 +435,15 @@ void verify_async(TAOS* taos) { ...@@ -435,11 +435,15 @@ void verify_async(TAOS* taos) {
} }
void stream_callback(void *param, TAOS_RES *res, TAOS_ROW row) { void stream_callback(void *param, TAOS_RES *res, TAOS_ROW row) {
if (res == NULL || row == NULL) {
return;
}
int num_fields = taos_num_fields(res); int num_fields = taos_num_fields(res);
TAOS_FIELD* fields = taos_fetch_fields(res); TAOS_FIELD* fields = taos_fetch_fields(res);
printf("got one row from stream_callback\n"); printf("got one row from stream_callback\n");
char temp[256]; char temp[256] = {0};
taos_print_row(temp, row, fields, num_fields); taos_print_row(temp, row, fields, num_fields);
puts(temp); puts(temp);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册