aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-20 18:08:08 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-20 18:08:08 -0400
commit972df059bbedfe60d29caa8a561f5aff76883e63 (patch)
tree60d9000e2709e688250abef2ed4e0460a268c0bf /activerecord/test
parente88636f733ad81c10dffde2e084e77034bc920fe (diff)
parent2d699e24ff10158c0831cf6b7f5e5b12ac41903a (diff)
downloadrails-972df059bbedfe60d29caa8a561f5aff76883e63.tar.gz
rails-972df059bbedfe60d29caa8a561f5aff76883e63.tar.bz2
rails-972df059bbedfe60d29caa8a561f5aff76883e63.zip
Merge pull request #28681 from runephilosof/fix-mysql-grant
Fix quoting in db:create grant all statement.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/tasks/mysql_rake_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/tasks/mysql_rake_test.rb b/activerecord/test/cases/tasks/mysql_rake_test.rb
index f30e0958c3..b85d303a91 100644
--- a/activerecord/test/cases/tasks/mysql_rake_test.rb
+++ b/activerecord/test/cases/tasks/mysql_rake_test.rb
@@ -167,7 +167,7 @@ if current_adapter?(:Mysql2Adapter)
def assert_permissions_granted_for(db_user)
db_name = @configuration["database"]
db_password = @configuration["password"]
- @connection.expects(:execute).with("GRANT ALL PRIVILEGES ON #{db_name}.* TO '#{db_user}'@'localhost' IDENTIFIED BY '#{db_password}' WITH GRANT OPTION;")
+ @connection.expects(:execute).with("GRANT ALL PRIVILEGES ON `#{db_name}`.* TO '#{db_user}'@'localhost' IDENTIFIED BY '#{db_password}' WITH GRANT OPTION;")
end
end