From 7cda0df7f1511a10c515165dbce76e5c68b654ff Mon Sep 17 00:00:00 2001 From: pfagiani Date: Sun, 21 Dec 2008 16:48:02 +0000 Subject: Fix script/dbconsole not handling numeric password [#1395 state:resolved] Signed-off-by: Frederick Cheung --- railties/lib/commands/dbconsole.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') 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 -- cgit v1.2.3