fix: change the paramter instead of table name

This commit is contained in:
slzhou 2022-12-01 16:50:23 +08:00
parent f758c3b062
commit b8ed0459a6
1 changed files with 1 additions and 1 deletions

View File

@ -3050,7 +3050,7 @@ _error:
void fillTableCountScanDataBlock(STableCountScanSupp* pSupp, char* dbName, char* stbName, int64_t count,
SSDataBlock* pRes) {
if (pSupp->dbNameSlotId != -1) {
ASSERT(strlen(pSupp->dbName));
ASSERT(strlen(dbName));
SColumnInfoData* colInfoData = taosArrayGet(pRes->pDataBlock, pSupp->dbNameSlotId);
char varDbName[TSDB_DB_NAME_LEN + VARSTR_HEADER_SIZE] = {0};
strncpy(varDataVal(varDbName), dbName, strlen(dbName));