aboutsummaryrefslogtreecommitdiff
path: root/contrib/auto-naming/db.rb
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/auto-naming/db.rb')
-rw-r--r--contrib/auto-naming/db.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/auto-naming/db.rb b/contrib/auto-naming/db.rb
index b57724acd..822a26bad 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