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

add null json value support

上级 e3249a17
......@@ -777,7 +777,6 @@ static void setResRawPtrImpl(SSqlRes* pRes, SInternalField* pInfo, int32_t i, bo
tscError("charset:%s to %s. val:%s convert failed.", DEFAULT_UNICODE_ENCODEC, tsCharset, (char*)p);
}
}
return;
}else if (type == TSDB_DATA_TYPE_DOUBLE) {
double jsonVd = *(double*)(realData);
sprintf(varDataVal(dst), "%.9lf", jsonVd);
......
......@@ -3401,7 +3401,7 @@ static void doSetTagValueInParam(void* pTable, char* param, int32_t paramLen, in
}else{
getJsonTagValueAll(val, jsonVal, TSDB_MAX_JSON_TAGS_LEN);
}
tVariantCreateFromBinary(tag, jsonVal, varDataTLen(jsonVal), type);
tVariantCreateFromBinary(tag, jsonVal, CHAR_BYTES + varDataTLen(POINTER_SHIFT(jsonVal,CHAR_BYTES)), type);
} else {
tVariantCreateFromBinary(tag, val, bytes, type);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册