diff options
author | pfagiani <pfagiani@gmail.com> | 2008-12-21 16:48:02 +0000 |
---|---|---|
committer | Frederick Cheung <frederick.cheung@gmail.com> | 2008-12-21 16:48:02 +0000 |
commit | 7cda0df7f1511a10c515165dbce76e5c68b654ff (patch) | |
tree | 4885f8db534581d6933515a4b915e38641248137 /railties/lib | |
parent | 3b317b7100c9a416f4e3545f3844f0c0743acdb2 (diff) | |
download | rails-7cda0df7f1511a10c515165dbce76e5c68b654ff.tar.gz rails-7cda0df7f1511a10c515165dbce76e5c68b654ff.tar.bz2 rails-7cda0df7f1511a10c515165dbce76e5c68b654ff.zip |
Fix script/dbconsole not handling numeric password [#1395 state:resolved]
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/commands/dbconsole.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/dbconsole.rb b/railties/lib/commands/dbconsole.rb index 6ff895aa30..06848d3c91 100644 --- a/railties/lib/commands/dbconsole.rb +++ b/railties/lib/commands/dbconsole.rb @@ -41,7 +41,7 @@ when "mysql" if config['password'] && include_password args << "--password=#{config['password']}" - elsif config['password'] && !config['password'].empty? + elsif config['password'] && !config['password'].to_s.empty? args << "-p" end |