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

Support dynamic grants in MySQL8 #86

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Support dynamic grants in MySQL8 #86

merged 1 commit into from
Aug 15, 2023

Conversation

petoju
Copy link
Owner

@petoju petoju commented Aug 15, 2023

It seems dynamic grants in MySQL8 don't obey the original grant model, where SHOW GRANTS shows them in 1 row.

Instead, there are 2 rows - one for static grants like SELECT and one for dynamic grants.

I added test and started merging all grants to make sure we get everything here.

As the new test works now (and didn't work before), I am reasonably convinced this works.

It seems dynamic grants in MySQL8 don't obey the original grant model,
where SHOW GRANTS shows them in 1 row.

Instead, there are 2 rows - one for static grants like SELECT and one
for dynamic grants.

I added test and started merging all grants to make sure we get
everything here.

As the new test works now (and didn't work before), I am reasonably
convinced this works.
@petoju petoju merged commit adb50d0 into master Aug 15, 2023
@bigwheel
Copy link

@petoju Few weeks ago, we encountered this problem after upgrade mysql 8.0.
So happy because you fixed this <3

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