--- /usr/bin/pt-show-grants.save 2012-03-07 15:47:57.000000000 -0800 +++ /usr/bin/pt-show-grants 2012-04-03 11:21:19.954002577 -0700 @@ -1714,7 +1714,7 @@ if ( $o->get('separate') ) { # List each grant separately. @grants = map { - my ( $grants, $on_what ) = $_ =~ m/GRANT (.*?) ON ((?:`|\*).*)$/; + my ( $grants, $on_what ) = $_ =~ m/GRANT (.*?) ON ((?:`|\*|').*)$/; map { "GRANT $_ ON $on_what" } split(', ', $grants); } @grants; my $count; @@ -1748,7 +1748,7 @@ my $grant = $_; PTDEBUG && _d($grant); my ( $grants, $on_what, $user ) = $grant - =~ m/GRANT (.*?) ON ((?:`|\*).*?) TO ('[^']*'\@'[^']+')?/; + =~ m/GRANT (.*?) ON ((?:`|\*|').*?) TO ('[^']*'\@'[^']+')?/; PTDEBUG && _d('grants:', $grants, 'on_what:', $on_what, 'user:', $user);