Skip to content

Commit

Permalink
Merge pull request puppetlabs#796 from jhriggs/ticket/3028-fix_grants…
Browse files Browse the repository at this point in the history
…_with_ANSI_QUOTES

(#3028) Fix mysql_grant with MySQL ANSI_QUOTES mode
  • Loading branch information
bmjen committed Feb 5, 2016
2 parents aa29170 + 31c17b0 commit 6598be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/mysql_grant/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def self.instances
# Once we have the list of grants generate entries for each.
grants.each_line do |grant|
# Match the munges we do in the type.
munged_grant = grant.delete("'").delete("`")
munged_grant = grant.delete("'").delete("`").delete('"')
# Matching: GRANT (SELECT, UPDATE) PRIVILEGES ON (*.*) TO ('root')@('127.0.0.1') (WITH GRANT OPTION)
if match = munged_grant.match(/^GRANT\s(.+)\sON\s(.+)\sTO\s(.*)@(.*?)(\s.*)?$/)
privileges, table, user, host, rest = match.captures
Expand Down

0 comments on commit 6598be8

Please sign in to comment.