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

fix error if =null in json tag

上级 7a821fe2
......@@ -4764,7 +4764,7 @@ static int32_t validateJsonTagExpr(tSqlExpr* pExpr, char* msgBuf) {
}
if (pRight->value.nType == TSDB_DATA_TYPE_BINARY){ // json value store by nchar, so need to convert from binary to nchar
if(pRight->value.nLen == INT_BYTES && *(uint32_t*)pRight->value.pz != TSDB_DATA_JSON_null)
if(pRight->value.nLen == INT_BYTES && *(uint32_t*)pRight->value.pz == TSDB_DATA_JSON_null)
return TSDB_CODE_SUCCESS;
if(pRight->value.nLen == 0)
return TSDB_CODE_SUCCESS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册