From 3707ec41b50195e1aeb758ef4a68e458f8bb3645 Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 29 Oct 2009 16:24:04 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/Table.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index 990b876ef..bc1c4601b 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -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; } }