fix table encode and decode bug
This commit is contained in:
parent
160725945f
commit
1da4fa6aef
|
@ -48,6 +48,7 @@ void tsdbEncodeTable(STable *pTable, char *buf, int *contLen) {
|
||||||
ptr = tdEncodeSchema(ptr, pTable->tagSchema);
|
ptr = tdEncodeSchema(ptr, pTable->tagSchema);
|
||||||
} else if (pTable->type == TSDB_CHILD_TABLE) {
|
} else if (pTable->type == TSDB_CHILD_TABLE) {
|
||||||
dataRowCpy(ptr, pTable->tagVal);
|
dataRowCpy(ptr, pTable->tagVal);
|
||||||
|
ptr = POINTER_SHIFT(ptr, dataRowLen(pTable->tagVal));
|
||||||
} else {
|
} else {
|
||||||
ptr = tdEncodeSchema(ptr, pTable->schema);
|
ptr = tdEncodeSchema(ptr, pTable->schema);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue