* [LEMONLDAP-498] Fix use of transactions in DBI config storage

This commit is contained in:
Sandro Cazzaniga 2012-08-09 11:48:17 +00:00
parent 22d9d7aec5
commit 1da7f7c33f

View File

@ -4,7 +4,7 @@ use strict;
use DBI;
use Lemonldap::NG::Common::Conf::Constants; #inherits
our $VERSION = '1.0.0';
our $VERSION = '1.2.2';
our @ISA = qw(Lemonldap::NG::Common::Conf::Constants);
our ( @EXPORT, %EXPORT_TAGS );
@ -55,7 +55,7 @@ sub _dbh {
$self->{dbiTable} ||= "lmConfig";
return $self->{_dbh} if ( $self->{_dbh} and $self->{_dbh}->ping );
return DBI->connect_cached( $self->{dbiChain}, $self->{dbiUser},
$self->{dbiPassword}, { RaiseError => 1, AutoCommit => 1, } );
$self->{dbiPassword}, { RaiseError => 1, AutoCommit => 0, } );
}
sub lock {