Skip to content

Commit

Permalink
Ensure dbconsole includes the -p parameter to mysql as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
NZKoz committed Jul 31, 2008
1 parent af3f2aa commit 0498d32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions railties/lib/commands/dbconsole.rb
Expand Up @@ -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']
Expand Down

0 comments on commit 0498d32

Please sign in to comment.