提交 389cf916 编写于 作者: wmmhello's avatar wmmhello

fix bugs and add test case

上级 6a3886d9
...@@ -626,8 +626,8 @@ int32_t jsonCompareUnit(const char* f1, const char* f2, bool* canReturn){ ...@@ -626,8 +626,8 @@ int32_t jsonCompareUnit(const char* f1, const char* f2, bool* canReturn){
}else if(!f1IsNull && f2IsNull){ }else if(!f1IsNull && f2IsNull){
return 1; return 1;
}else{ }else{
bool f1IsJsonNull = (*f1 == TSDB_DATA_TYPE_BINARY && *(uint32_t*)(f1 + CHAR_BYTES) == TSDB_DATA_JSON_null); bool f1IsJsonNull = (*f1 == TSDB_DATA_TYPE_BINARY && *(uint32_t*)varDataVal(f1 + CHAR_BYTES) == TSDB_DATA_JSON_null);
bool f2IsJsonNull = (*f2 == TSDB_DATA_TYPE_BINARY && *(uint32_t*)(f1 + CHAR_BYTES) == TSDB_DATA_JSON_null); bool f2IsJsonNull = (*f2 == TSDB_DATA_TYPE_BINARY && *(uint32_t*)varDataVal(f1 + CHAR_BYTES) == TSDB_DATA_JSON_null);
if(f1IsJsonNull && f2IsJsonNull){ if(f1IsJsonNull && f2IsJsonNull){
return 0; return 0;
}else if(f1IsJsonNull && !f2IsJsonNull){ }else if(f1IsJsonNull && !f2IsJsonNull){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册