fixed commit error for table creation on SQLite

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4464 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-10-29 16:24:04 +00:00
parent 69a867251e
commit 3707ec41b5

View File

@ -622,7 +622,9 @@ sub new
$xCAT::Schema::tabspec{$self->{tabname}},
$xcatcfg);
$self->{dbh}->do($str);
$self->{dbh}->commit;
if (!$self->{dbh}->{AutoCommit}) {
$self->{dbh}->commit;
}
}
else { return undef; }
}