more db2 updates and added error message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5008 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
cbd417fd76
commit
db7ddbb551
@ -687,6 +687,8 @@ sub new
|
||||
} else { #generic DBI
|
||||
if (!$self->{dbh})
|
||||
{
|
||||
xCAT::MsgUtils->message("S", "Could not connect to the database. Database handle not defined.");
|
||||
|
||||
return undef;
|
||||
}
|
||||
my $tbexistq;
|
||||
@ -716,6 +718,10 @@ sub new
|
||||
$xCAT::Schema::tabspec{$self->{tabname}},
|
||||
$xcatcfg);
|
||||
$self->{dbh}->do($str);
|
||||
if ($xcatcfg =~ /^DB2:/) { # for DB2
|
||||
$self->{dbh}->commit; # commit the create
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} # end Generic DBI
|
||||
|
Loading…
Reference in New Issue
Block a user