Skip to content

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Apr 3, 2024

A naive implementation of SHOW GRANTS FOR

It returns all the privileges one can have and assumes a root user.

https://dev.mysql.com/doc/refman/8.0/en/show-grants.html

Testing instructions:

./vendor/bin/phpunit -c ./phpunit.xml.dist --filter testShowGrants

A naive implementation of SHOW GRANTS FOR

It always returns ALL_PRIVILIGES, which MySQL 8.0 doesn't do, but MySQL < 8.0 may.

https://dev.mysql.com/doc/refman/8.0/en/show-grants.html

Testing instructions:

```
./vendor/bin/phpunit -c ./phpunit.xml.dist --filter testShowGrants
```
@adamziel adamziel added the enhancement New feature or request label Apr 3, 2024
@adamziel adamziel merged commit a46b6a4 into main Apr 3, 2024
@aristath aristath deleted the add-show-grants-for branch April 4, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant