From 1da7f7c33f018c2ccdb51ebae96a512dc1d21b73 Mon Sep 17 00:00:00 2001 From: Sandro Cazzaniga Date: Thu, 9 Aug 2012 11:48:17 +0000 Subject: [PATCH] * [LEMONLDAP-498] Fix use of transactions in DBI config storage --- lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/_DBI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/_DBI.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/_DBI.pm index d5bae0ccd..975d02529 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/_DBI.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/_DBI.pm @@ -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 {