diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index df5ffcecf58a61587c0b0fe38f3efc3053c7d6d1..a6446a49fc8c997207fcbeb9a963e7cf4a1ae227 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -3007,6 +3007,7 @@ int32_t tscGetTableMetaImpl(SSqlObj* pSql, STableMetaInfo *pTableMetaInfo, bool // in case of child table, here only get the if (pMeta->tableType == TSDB_CHILD_TABLE) { int32_t code = tscCreateTableMetaFromSTableMeta(&pTableMetaInfo->pTableMeta, name, &pTableMetaInfo->tableMetaCapacity); + pMeta = pTableMetaInfo->pTableMeta; if (code != TSDB_CODE_SUCCESS) { return getTableMetaFromMnode(pSql, pTableMetaInfo, autocreate); }