Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure dbconsole includes the -p parameter to mysql as intended

  • Loading branch information...
commit f64bd2ca85595f94cbbe809f51a52cdb9b68af19 1 parent 2617d0d
@NZKoz NZKoz authored
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']
Please sign in to comment.
Something went wrong with that request. Please try again.