提交 72df476a 编写于 作者: wmmhello's avatar wmmhello

TD-6129<feature> support null true false for json tag

上级 e480a792
......@@ -736,7 +736,11 @@ static void setResRawPtrImpl(SSqlRes* pRes, SInternalField* pInfo, int32_t i, bo
tfree(json);
}
}else if (*p == SELECT_ELEMENT_JSON_TAG){
parseTagValue2Dst(realData, dst);
if (isNull(realData, TSDB_DATA_TYPE_JSON)) {
memcpy(dst, realData, varDataTLen(realData));
}else{
parseTagValue2Dst(realData, dst);
}
}else{
tscError("construct json error");
}
......@@ -5248,7 +5252,7 @@ char* parseTagDatatoJson(void *p){
continue;
}
if (j == 1 && *(uint8_t*)val == TSDB_DATA_JSON_NULL){
break;
goto end;
}
if (j%2 == 0) { // json key encode by binary
ASSERT(varDataLen(val) <= TSDB_MAX_JSON_KEY_LEN);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册