diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-03-06 09:47:55 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-03-06 09:47:55 -0500 |
commit | 306aed5b8a559aad2fb944a946ffdda9713f07ec (patch) | |
tree | cf627bc6438dba6103d4e05a1d5cff678f78df6f /lib/sisu/v1/dbi.rb | |
parent | skin_sisu utf-8 marker (diff) |
introducing version 2, major patch, (version 1 libraries retained)sisu_2.0.0
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 |