aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/dbconsole
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-08-29 17:44:36 +0900
committerGitHub <noreply@github.com>2017-08-29 17:44:36 +0900
commitca5621d4f25b71f3b59bc8354d4bc1526b14cfcd (patch)
tree61eda2817eb34b2b9151910d7ad4aac6804cf9d2 /railties/lib/rails/commands/dbconsole
parentca941da4002bb604bc7fef7bedcff8428bd5dc08 (diff)
parentc3b2d7117c6b5aede95e9126c4c0cb48bca0739b (diff)
downloadrails-ca5621d4f25b71f3b59bc8354d4bc1526b14cfcd.tar.gz
rails-ca5621d4f25b71f3b59bc8354d4bc1526b14cfcd.tar.bz2
rails-ca5621d4f25b71f3b59bc8354d4bc1526b14cfcd.zip
Merge pull request #30451 from y-yagi/fix_cant_modify_forzen_string_error_in_dbconsole_with_sqlserver
Fix `can't modify frozen String` error in `DBConsole`
Diffstat (limited to 'railties/lib/rails/commands/dbconsole')
-rw-r--r--railties/lib/rails/commands/dbconsole/dbconsole_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/dbconsole/dbconsole_command.rb b/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
index 6296c95a87..5234969743 100644
--- a/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
+++ b/railties/lib/rails/commands/dbconsole/dbconsole_command.rb
@@ -75,7 +75,7 @@ module Rails
args += ["-P", "#{config['password']}"] if config["password"]
if config["host"]
- host_arg = "#{config['host']}"
+ host_arg = "#{config['host']}".dup
host_arg << ":#{config['port']}" if config["port"]
args += ["-S", host_arg]
end