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

Clean up the grant/revoke functions #49

Merged
merged 4 commits into from
Feb 7, 2025

Conversation

jeltz
Copy link
Collaborator

@jeltz jeltz commented Feb 7, 2025

When reading the functions I wondered if it would not be easier to read them if they just ran EXECUTE format(...) directly instead of using helper functions which pollute the namespace. What do you say?

@jeltz jeltz requested review from dutow and dAdAbird as code owners February 7, 2025 15:18
@jeltz jeltz force-pushed the clean-grant-revoke branch from cb4d179 to 311747b Compare February 7, 2025 15:57
@jeltz jeltz force-pushed the clean-grant-revoke branch from 311747b to 9a41b26 Compare February 7, 2025 18:23
jeltz added 4 commits February 7, 2025 19:26
This code does not do anything with the exceptions other than
re-throwing them so why catch them in the first place?
Users might assume that the return value means something when it does
not.
Since a user is just a  role which can log in it we can replace
"user_or_role" with just "role".
The code becaomes shorter and easier to understand without the
wrapper functions and two less functions in the namespace is a
nice bonus.
@jeltz jeltz force-pushed the clean-grant-revoke branch from 9a41b26 to 2dbbe7d Compare February 7, 2025 18:26
@jeltz jeltz merged commit 161e5b3 into percona:TDE_REL_17_STABLE Feb 7, 2025
13 checks passed
@jeltz jeltz deleted the clean-grant-revoke branch February 7, 2025 18:57
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.

2 participants