public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
dbconsole should not require a username for postgresql. [#207 
state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
pd (author)
Fri May 16 04:51:39 -0700 2008
lifo (committer)
Fri May 16 05:10:14 -0700 2008
commit  77f873acf2f1fb4533dfca6b26b965a115ebbc54
tree    2d4c04d3897fcc8bf0e41aabd5495b498bdf66b0
parent  150717344aa5c6d8f46fc67de39d6947553ac286
...
40
41
42
 
43
44
45
46
 
47
48
49
...
40
41
42
43
44
45
46
 
47
48
49
50
0
@@ -40,10 +40,11 @@
0
   exec(find_cmd('mysql5', 'mysql'), *args)
0
 
0
 when "postgresql"
0
+ ENV['PGUSER'] = config["username"] if config["username"]
0
   ENV['PGHOST'] = config["host"] if config["host"]
0
   ENV['PGPORT'] = config["port"].to_s if config["port"]
0
   ENV['PGPASSWORD'] = config["password"].to_s if config["password"]
0
- exec(find_cmd('psql'), '-U', config["username"], config["database"])
0
+ exec(find_cmd('psql'), , config["database"])
0
 
0
 when "sqlite"
0
   exec(find_cmd('sqlite'), config["database"])

Comments

    No one has commented yet.