Skip to content

Commit

Permalink
*: address comments round 2
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <dawn_catcher@126.com>
  • Loading branch information
BornChanger committed Jan 17, 2023
1 parent 6134d78 commit 3e82fcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions executor/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -1455,8 +1455,8 @@ func ConstructResultOfShowCreatePlacementPolicy(policyInfo *model.PolicyInfo) st
return fmt.Sprintf("CREATE PLACEMENT POLICY `%s` %s", policyInfo.Name.O, policyInfo.PlacementSettings.String())
}

// ConstructResultOfShowCreateResourceGroup constructs the result for show create resource group.
func ConstructResultOfShowCreateResourceGroup(resourceGroup *model.ResourceGroupInfo) string {
// constructResultOfShowCreateResourceGroup constructs the result for show create resource group.
func constructResultOfShowCreateResourceGroup(resourceGroup *model.ResourceGroupInfo) string {
return fmt.Sprintf("CREATE RESOURCE GROUP `%s` %s", resourceGroup.Name.O, resourceGroup.ResourceGroupSettings.String())
}

Expand Down Expand Up @@ -1499,7 +1499,7 @@ func (e *ShowExec) fetchShowCreateResourceGroup() error {
if !found {
return infoschema.ErrResourceGroupNotExists.GenWithStackByArgs(e.ResourceGroupName.O)
}
showCreate := ConstructResultOfShowCreateResourceGroup(group)
showCreate := constructResultOfShowCreateResourceGroup(group)
e.appendRow([]interface{}{e.ResourceGroupName.O, showCreate})
return nil
}
Expand Down

0 comments on commit 3e82fcc

Please sign in to comment.