diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-03-06 09:49:35 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-03-06 09:49:35 -0500 |
commit | f8c45cd15f95d4d2329046232ec53f0ff13add69 (patch) | |
tree | 855d8145e52bdadf7ea684357a6e266a5823b28f /lib/sisu/v1/dbi.rb | |
parent | sisu.install tidy (diff) | |
parent | introducing version 2, major patch, (version 1 libraries retained) (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v1/dbi.rb')
-rw-r--r-- | lib/sisu/v1/dbi.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v1/dbi.rb b/lib/sisu/v1/dbi.rb index 644b150d..edd2e3ef 100644 --- a/lib/sisu/v1/dbi.rb +++ b/lib/sisu/v1/dbi.rb @@ -7,7 +7,7 @@ * Author: Ralph Amissah - * Copyright: (C) 1997 - 2009 Ralph Amissah All Rights Reserved. + * Copyright: (C) 1997 - 2010, Ralph Amissah, All Rights Reserved. * License: GPL 3 or later: @@ -108,10 +108,10 @@ module SiSU_DBI rescue if @opt.mod.inspect=~/--(createall|create)/ puts %{manually create the database: "#{db}" if it does not yet exist} - #sudo su -p postgres; createdb #{db}; #[createuser?] + #sudo su -p postgres; createdb #{@db.db}; #[createuser?] end SiSU_DB_DBI::Case.new(@opt,@conn,@sql_type).cases - @conn=DBI.connect(dbi,user,db) + @conn=DBI.connect(@db.dbi,@db.user,@db.db) ensure end end |