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

enable different value type of the same key in json

上级 34451937
......@@ -4744,10 +4744,12 @@ static int32_t validateJsonTagExpr(tSqlExpr* pExpr, char* msgBuf) {
if(!taosMbsToUcs4(pRight->value.pz, pRight->value.nLen, newData, TSDB_MAX_JSON_TAGS_LEN, &len)){
tscError("json where condition mbsToUcs4 error");
}
pRight->value.pz = realloc(pRight->value.pz, len);
if(len > 0){
pRight->value.pz = realloc(pRight->value.pz, len);
memcpy(pRight->value.pz, newData, len);
}
pRight->value.nLen = len;
pRight->value.nType = TSDB_DATA_TYPE_NCHAR;
memcpy(pRight->value.pz, newData, len);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册