public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Fix script/dbconsole not handling numeric password [#1395 state:resolved]

Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
fagiani (author)
Sun Dec 21 08:48:02 -0800 2008
fcheung (committer)
Sun Dec 21 08:48:02 -0800 2008
commit  7cda0df7f1511a10c515165dbce76e5c68b654ff
tree    4885f8db534581d6933515a4b915e38641248137
parent  3b317b7100c9a416f4e3545f3844f0c0743acdb2
...
41
42
43
44
 
45
46
47
...
41
42
43
 
44
45
46
47
0
@@ -41,7 +41,7 @@ when "mysql"
0
 
0
   if config['password'] && include_password
0
     args << "--password=#{config['password']}"
0
-  elsif config['password'] && !config['password'].empty?
0
+  elsif config['password'] && !config['password'].to_s.empty?
0
     args << "-p"
0
   end
0
 

Comments