feat: subplan adds 'user' field

This commit is contained in:
Xiaoyu Wang 2022-06-24 19:10:00 +08:00
parent 0701da48f4
commit 994232c7ac
1 changed files with 3 additions and 1 deletions

View File

@ -1453,7 +1453,9 @@ static SSubplan* makeSubplan(SPhysiPlanContext* pCxt, SLogicSubplan* pLogicSubpl
pSubplan->id = pLogicSubplan->id;
pSubplan->subplanType = pLogicSubplan->subplanType;
pSubplan->level = pLogicSubplan->level;
strcpy(pSubplan->user, pCxt->pPlanCxt->pUser);
if (NULL != pCxt->pPlanCxt->pUser) {
strcpy(pSubplan->user, pCxt->pPlanCxt->pUser);
}
return pSubplan;
}