Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions trino-csharp/Trino.Client/ClientSelectedRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@ public ClientSelectedRole Clone()
{
return new ClientSelectedRole(this.RoleType, this.Role);
}

public override string ToString()
{
return Type.ROLE.ToString()+"{"+Role+"}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to work regardless of the role type. This impl only works for role type = ROLE. What about NONE and ALL?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silly me, Thank you!! I fixed it and tested with ROLE and NONE and ALL

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephen-zhao : Can you please check if the changes look okay?

}
}
}