提交 7186767f 编写于 作者: wmmhello's avatar wmmhello

add json compare function support

上级 e0340e56
......@@ -5387,21 +5387,21 @@ void* getJsonTagValueElment(STable* data, char* key, int32_t keyLen, char* dst,
char* realData = POINTER_SHIFT(result, CHAR_BYTES);
if(*(char*)result == TSDB_DATA_TYPE_NCHAR || *(char*)result == TSDB_DATA_TYPE_BINARY) {
assert(varDataTLen(realData) < bytes);
if(!dst) return realData;
if(!dst) return result;
memcpy(dst, result, CHAR_BYTES + varDataTLen(realData));
return dst;
}else if (*(char*)result == TSDB_DATA_TYPE_DOUBLE || *(char*)result == TSDB_DATA_TYPE_BIGINT) {
if(!dst) return realData;
if(!dst) return result;
memcpy(dst, result, CHAR_BYTES + LONG_BYTES);
return dst;
}else if (*(char*)result == TSDB_DATA_TYPE_BOOL) {
if(!dst) return realData;
if(!dst) return result;
memcpy(dst, result, CHAR_BYTES + CHAR_BYTES);
return dst;
}else {
assert(0);
}
return realData;
return result;
}
void getJsonTagValueAll(void* data, void* dst, int16_t bytes) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册