Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: simplify user id querying for GRANT ROLE #96205

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

andyyang890
Copy link
Collaborator

This patch inlines the querying of the role and member user ids
within the GRANT ROLE logic instead of making separate internal
executor queries.

Part of #87079

Release note: None

@blathers-crl
Copy link

blathers-crl bot commented Jan 30, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andyyang890 andyyang890 marked this pull request as ready for review January 30, 2023 19:54
@andyyang890 andyyang890 requested review from a team January 30, 2023 19:54
Copy link
Collaborator

@ZhouXing19 ZhouXing19 left a comment

Choose a reason for hiding this comment

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

Nice, it looks much nicer!

@andyyang890
Copy link
Collaborator Author

TFTR!

bors r=ZhouXing19

This patch inlines the querying of the role and member user ids
within the GRANT ROLE logic instead of making separate internal
executor queries.

Release note: None
@andyyang890 andyyang890 force-pushed the simplify_role_members branch from 88f284f to f833228 Compare January 30, 2023 22:23
@craig
Copy link
Contributor

craig bot commented Jan 30, 2023

Canceled.

@andyyang890
Copy link
Collaborator Author

removed some unnecessary quotation marks

bors r=ZhouXing19

@craig
Copy link
Contributor

craig bot commented Jan 31, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jan 31, 2023

Build succeeded:

@craig craig bot merged commit 1fb7236 into cockroachdb:master Jan 31, 2023
@andyyang890 andyyang890 deleted the simplify_role_members branch January 31, 2023 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants