提交 3f82427e 编写于 作者: wmmhello's avatar wmmhello

fix:add log

上级 ad61b5b5
...@@ -815,7 +815,7 @@ static int8_t smlGetTsTypeByPrecision(int8_t precision) { ...@@ -815,7 +815,7 @@ static int8_t smlGetTsTypeByPrecision(int8_t precision) {
} }
static int64_t smlParseInfluxTime(SSmlHandle *info, const char *data, int32_t len) { static int64_t smlParseInfluxTime(SSmlHandle *info, const char *data, int32_t len) {
char *tmp = taosMemoryCalloc(1, len + 1); char *tmp = (char*)taosMemoryCalloc(1, len + 1);
memcpy(tmp, data, len); memcpy(tmp, data, len);
uDebug("SML:0x%" PRIx64 " smlParseInfluxTime ts:%s", info->id, tmp); uDebug("SML:0x%" PRIx64 " smlParseInfluxTime ts:%s", info->id, tmp);
taosMemoryFree(tmp); taosMemoryFree(tmp);
...@@ -2071,7 +2071,7 @@ static int32_t smlParseJSONString(SSmlHandle *info, cJSON *root, SSmlTableInfo * ...@@ -2071,7 +2071,7 @@ static int32_t smlParseJSONString(SSmlHandle *info, cJSON *root, SSmlTableInfo *
static int32_t smlParseInfluxLine(SSmlHandle *info, const char *sql, const int len) { static int32_t smlParseInfluxLine(SSmlHandle *info, const char *sql, const int len) {
SSmlLineInfo elements = {0}; SSmlLineInfo elements = {0};
char *tmp = taosMemoryCalloc(1, len + 1); char *tmp = (char*)taosMemoryCalloc(1, len + 1);
memcpy(tmp, sql, len); memcpy(tmp, sql, len);
uDebug("SML:0x%" PRIx64 " smlParseInfluxLine raw:%d, sql:%s", info->id, info->isRawLine, (info->isRawLine ? tmp : sql)); uDebug("SML:0x%" PRIx64 " smlParseInfluxLine raw:%d, sql:%s", info->id, info->isRawLine, (info->isRawLine ? tmp : sql));
taosMemoryFree(tmp); taosMemoryFree(tmp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册