From 306aed5b8a559aad2fb944a946ffdda9713f07ec Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 6 Mar 2010 09:47:55 -0500 Subject: introducing version 2, major patch, (version 1 libraries retained) --- lib/sisu/v1/dbi.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/sisu/v1/dbi.rb') 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 -- cgit v1.2.3