* [LEMONLDAP-498] Fix use of transactions in DBI config storage
This commit is contained in:
parent
22d9d7aec5
commit
1da7f7c33f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user