Skip to content
Browse files

Ensure dbconsole includes the -p parameter to mysql as intended

  • Loading branch information...
1 parent 2617d0d commit f64bd2ca85595f94cbbe809f51a52cdb9b68af19 @NZKoz NZKoz committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/lib/commands/dbconsole.rb
View
2 railties/lib/commands/dbconsole.rb
@@ -41,6 +41,8 @@ def find_cmd(*commands)
if config['password'] && include_password
args << "--password=#{config['password']}"
+ elsif config['password'] && !config['password'].empty?
+ args << "-p"
end
args << config['database']

0 comments on commit f64bd2c

Please sign in to comment.
Something went wrong with that request. Please try again.