提交 cb5a0012 编写于 作者: S shenglian zhou

before time precision and create table with tags instead of autocreate

上级 2d0005d3
...@@ -492,7 +492,8 @@ int32_t insertPoints(TAOS* taos, TAOS_SML_DATA_POINT* points, int32_t numPoints) ...@@ -492,7 +492,8 @@ int32_t insertPoints(TAOS* taos, TAOS_SML_DATA_POINT* points, int32_t numPoints)
int32_t idx = TARRAY_ELEM_IDX(point->schema->tags, kv->schema); int32_t idx = TARRAY_ELEM_IDX(point->schema->tags, kv->schema);
TAOS_BIND* bind = taosArrayGet(tagBinds, idx); TAOS_BIND* bind = taosArrayGet(tagBinds, idx);
bind->buffer_type = kv->type; bind->buffer_type = kv->type;
bind->length = (uintptr_t*)&kv->length; bind->length = malloc(sizeof(uintptr_t*));
*bind->length = kv->length;
bind->buffer = kv->value; bind->buffer = kv->value;
bind->is_null = NULL; bind->is_null = NULL;
} }
...@@ -514,7 +515,8 @@ int32_t insertPoints(TAOS* taos, TAOS_SML_DATA_POINT* points, int32_t numPoints) ...@@ -514,7 +515,8 @@ int32_t insertPoints(TAOS* taos, TAOS_SML_DATA_POINT* points, int32_t numPoints)
int32_t idx = TARRAY_ELEM_IDX(point->schema->fields, kv->schema); int32_t idx = TARRAY_ELEM_IDX(point->schema->fields, kv->schema);
TAOS_BIND* bind = taosArrayGet(colBinds, idx); TAOS_BIND* bind = taosArrayGet(colBinds, idx);
bind->buffer_type = kv->type; bind->buffer_type = kv->type;
bind->length = (uintptr_t*)&kv->length; bind->length = malloc(sizeof(uintptr_t*));
*bind->length = kv->length;
bind->buffer = kv->value; bind->buffer = kv->value;
bind->is_null = NULL; bind->is_null = NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册