remove db prefix from table name
This commit is contained in:
parent
918ac030fb
commit
af305abdc8
|
@ -1242,7 +1242,7 @@ static void *mgmtBuildCreateChildTableMsg(SCMCreateTableMsg *pMsg, SChildTableOb
|
|||
return NULL;
|
||||
}
|
||||
|
||||
memcpy(pCreate->tableId, pTable->info.tableId, TSDB_TABLE_ID_LEN);
|
||||
mgmtExtractTableName(pTable->info.tableId, pCreate->tableId);
|
||||
pCreate->contLen = htonl(contLen);
|
||||
pCreate->vgId = htonl(pTable->vgId);
|
||||
pCreate->tableType = pTable->info.type;
|
||||
|
@ -1252,7 +1252,7 @@ static void *mgmtBuildCreateChildTableMsg(SCMCreateTableMsg *pMsg, SChildTableOb
|
|||
pCreate->uid = htobe64(pTable->uid);
|
||||
|
||||
if (pTable->info.type == TSDB_CHILD_TABLE) {
|
||||
memcpy(pCreate->superTableId, pTable->superTable->info.tableId, TSDB_TABLE_ID_LEN + 1);
|
||||
mgmtExtractTableName(pTable->superTable->info.tableId, pCreate->superTableId);
|
||||
pCreate->numOfColumns = htons(pTable->superTable->numOfColumns);
|
||||
pCreate->numOfTags = htons(pTable->superTable->numOfTags);
|
||||
pCreate->sversion = htonl(pTable->superTable->sversion);
|
||||
|
|
Loading…
Reference in New Issue