rails/rails — pull request #5270 by kennyj (2012-03-04 16:06:15+00:00)
Title: Fix GH #3163. Should quote database on mysql/mysql2.

*database* argument pass to *tables* method isn't escaped.
Please see https://github.com/rails/rails/issues/3163