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

enable different value type of the same key in json

上级 ee04df3c
......@@ -4744,7 +4744,7 @@ 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");
}
char* p = realloc(pRight->value.pz, len);
pRight->value.pz = realloc(pRight->value.pz, 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.
先完成此消息的编辑!
想要评论请 注册