diff options
Diffstat (limited to 'contrib/auto-naming/db.rb')
-rw-r--r-- | contrib/auto-naming/db.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/auto-naming/db.rb b/contrib/auto-naming/db.rb index b57724acdd..822a26bad7 100644 --- a/contrib/auto-naming/db.rb +++ b/contrib/auto-naming/db.rb @@ -39,8 +39,8 @@ class WeaselDbQueryHandle end class Db - def initialize(database, user, password) - @dbh = DBI.connect("dbi:Pg:#{database}:localhost", user, password); + def initialize(host, database, user, password) + @dbh = DBI.connect("dbi:Pg:#{database}:#{host}", user, password); @dbh['AutoCommit'] = false @transaction = false @pre_initial_transaction=true |