Skip to content

Commit

Permalink
Bugfix for mysql_grant provider when we try to grant remove privileges
Browse files Browse the repository at this point in the history
  • Loading branch information
dgolja committed Jan 11, 2014
1 parent e667d52 commit fb26be2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet/provider/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def self.cmd_table(table)
# We can't escape *.* so special case this.
if table == '*.*'
table_string << '*.*'
# Special case also for PROCEDURES
elsif table.start_with?('PROCEDURE ')
table_string << table.sub(/^PROCEDURE (.*)(\..*)/, 'PROCEDURE `\1`\2')
else
table_string << table.sub(/^(.*)(\..*)/, '`\1`\2')
end
Expand Down

0 comments on commit fb26be2

Please sign in to comment.