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

TD-6129<feature> fix json encode error

上级 e0b312ad
......@@ -5161,7 +5161,7 @@ int parseJsontoTagData(char* json, SKVRowBuilder* kvRowBuilder, char* errMsg, in
goto end;
}
int jsonIndex = startColId++;
int jsonIndex = ++startColId;
for(int i = 0; i < size; i++) {
cJSON* item = cJSON_GetArrayItem(root, i);
if (!item) {
......
......@@ -1122,7 +1122,7 @@ static int tsdbAddTableIntoIndex(STsdbMeta *pMeta, STable *pTable, bool refSuper
tablist = (SArray**)&tablistNew;
}
JsonMapValue jmvalue = {TABLE_UID(pTable), pColIdx->colId};
taosArrayPush(*tablist, &jmvalue);
taosArrayAddBatch(*tablist, &jmvalue, 1);
taosArraySort(*tablist, tscCompareJsonMapValue);
}
}else{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册