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

TD-6129<feature> support null true false for json tag

上级 b4f9c09e
...@@ -1145,7 +1145,7 @@ static int tsdbAddTableIntoIndex(STsdbMeta *pMeta, STable *pTable, bool refSuper ...@@ -1145,7 +1145,7 @@ static int tsdbAddTableIntoIndex(STsdbMeta *pMeta, STable *pTable, bool refSuper
void* data1 = tdGetKVRowValOfCol(((STable *)(tmp->table))->tagVal, tmp->colId + 1); void* data1 = tdGetKVRowValOfCol(((STable *)(tmp->table))->tagVal, tmp->colId + 1);
SColIdx * pInsertColIdx = kvRowColIdxAt(pTable->tagVal, j + 1); SColIdx * pInsertColIdx = kvRowColIdxAt(pTable->tagVal, j + 1);
void* data2 = (kvRowColVal(pTable->tagVal, pInsertColIdx)); void* data2 = (kvRowColVal(pTable->tagVal, pInsertColIdx));
if(*(char*)data1 != *(char*)data2){ if(*(uint8_t*)data1 != *(uint8_t*)data2){
terrno = TSDB_CODE_TDB_IVLD_SAME_JSON_VALUE; terrno = TSDB_CODE_TDB_IVLD_SAME_JSON_VALUE;
tsdbError("invalidate same json tag value"); tsdbError("invalidate same json tag value");
return -1; return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册