fix: show users for super user when upgrade

This commit is contained in:
kailixu 2024-06-05 10:10:20 +08:00
parent b8069ed33c
commit 872d986a2c
1 changed files with 1 additions and 1 deletions

View File

@ -2327,7 +2327,7 @@ static int32_t mndRetrieveUsers(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBl
colDataSetVal(pColInfo, numOfRows, (const char *)&pUser->sysInfo, false);
cols++;
flag = pUser->createdb ? 1 : 0;
flag = (pUser->createdb || pUser->superUser) ? 1 : 0;
pColInfo = taosArrayGet(pBlock->pDataBlock, cols);
colDataSetVal(pColInfo, numOfRows, (const char *)&flag, false);