module-mysql/lib
Micah Anderson 2fc3849818 Instead of doing an update table_priv, we need to do GRANT/REVOKE statements
When we are working with tables_priv we need to first get a downcased array of the currently set privileges, and a downcased array of the desired permissions.

Then we make a list of the permissions to revoke by subtracting the requested permissions from the currently set ones.

If the list of permissions to revoke is not empty, then we issue a REVOKE.

Then we make a list of the permissions to add by subtracting the requested permissions from the current set (no need to add select again if it is already there).

Then if the set of permissions to add is not empty, then we actually execute the statement.
2012-01-01 15:43:47 -05:00
..
facter get rid off expensive which call 2010-08-11 10:40:24 +02:00
puppet Instead of doing an update table_priv, we need to do GRANT/REVOKE statements 2012-01-01 15:43:47 -05:00