From: Dobrica Pavlinusic Date: Fri, 27 Mar 2009 16:55:53 +0000 (+0000) Subject: we really need AutoCommit => 1 so we see changes X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=commitdiff_plain;h=8940e999c6205401d4c53fce4e14afccc3e49255;ds=sidebyside we really need AutoCommit => 1 so we see changes in koha database which happend after startup --- diff --git a/lib/LDAP/Koha.pm b/lib/LDAP/Koha.pm index 98c37dd..eec8cd1 100644 --- a/lib/LDAP/Koha.pm +++ b/lib/LDAP/Koha.pm @@ -26,7 +26,7 @@ our $max_results = 10; # 100; # FIXME require 'config.pl' if -e 'config.pl'; -my $dbh = DBI->connect($dsn . $database, $user,$passwd, { RaiseError => 1, AutoCommit => 0 }) || die $DBI::errstr; +my $dbh = DBI->connect($dsn . $database, $user,$passwd, { RaiseError => 1, AutoCommit => 1 }) || die $DBI::errstr; # Net::LDAP::Entry will lc all our attribute names anyway, so # we don't really care about correctCapitalization for LDAP