From 02066032cb2aa49b5d7cebdbfa5d83dd2f3571c0 Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Tue, 27 Nov 2007 01:11:32 +0100 Subject: Avoid spurious commits. --- lib/LXRng/Index/DBI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/LXRng/Index') diff --git a/lib/LXRng/Index/DBI.pm b/lib/LXRng/Index/DBI.pm index 2b796bd..5288eda 100644 --- a/lib/LXRng/Index/DBI.pm +++ b/lib/LXRng/Index/DBI.pm @@ -17,7 +17,7 @@ sub transaction { # AutoCommit state. $code->(); } - $self->dbh->commit(); + $self->dbh->commit() unless $self->dbh->{AutoCommit}; } sub _to_task { -- cgit v1.2.3