Chuck,
The test case is a good regression test, but as it turns out this bug is
a duplicate of BUG#43444. The patch for that bug included a test case
that covers the scenario submitted here (see end of test file
backup_db_grants.test). I suggest you close this one as Duplicate.
Chuck Bell wrote:
> #At file:///D:/source/bzr/mysql-6.0-45914/ based on
> revid:jorgen.loland@stripped
>
> 2857 Chuck Bell 2009-08-10
> BUG#45914 : Restore errors if there is a privilege on a quoted database name
>
> The bug can no longer be repeated. This patch adds a regression
> test case to ensure the problem doesn't return.
> @ mysql-test/suite/backup/r/backup_objects.result
> Result file with new test case.
> @ mysql-test/suite/backup/t/backup_objects.test
> Added test that case executes backup and restore of a database using
> quoted name and privileges assigned to a user.
>
> modified:
> mysql-test/suite/backup/r/backup_objects.result
> mysql-test/suite/backup/t/backup_objects.test
--
Jørgen Løland