Merge pull request #13407 from taosdata/feat/tag_refact

fix:fix error in updata tag
This commit is contained in:
WANG MINGMING 2022-06-02 14:49:57 +08:00 committed by GitHub
commit 3a51acf55e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ static int metaUpdateTableTagVal(SMeta *pMeta, int64_t version, SVAlterTbReq *pA
}
taosArrayPush(pTagArray, &val);
} else {
STagVal val = {0};
STagVal val = {.cid = pCol->colId};
if (tTagGet(pOldTag, &val)) {
taosArrayPush(pTagArray, &val);
}