From c4804fb41628501553714fd98d0078d05353e930 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Thu, 10 Mar 2005 15:59:48 +0000 Subject: Bug 285397: Untested parts of Bugzilla::DB are broken (when running on PostgreSQL) Patch By Max Kanat-Alexander r=Tomas.Kopal, a=justdave --- Bugzilla/DB.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Bugzilla/DB.pm') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 59d19b48b..cf1e391f5 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -478,12 +478,11 @@ sub bz_start_transaction { my ($self) = @_; if ($self->{private_bz_in_transaction}) { - carp("Can't start transaction within another transaction"); ThrowCodeError("nested_transaction"); } else { # Turn AutoCommit off and start a new transaction $self->begin_work(); - $self->{privateprivate_bz_in_transaction} = 1; + $self->{private_bz_in_transaction} = 1; } } @@ -491,7 +490,6 @@ sub bz_commit_transaction { my ($self) = @_; if (!$self->{private_bz_in_transaction}) { - carp("Can't commit without a transaction"); ThrowCodeError("not_in_transaction"); } else { $self->commit(); @@ -504,7 +502,6 @@ sub bz_rollback_transaction { my ($self) = @_; if (!$self->{private_bz_in_transaction}) { - carp("Can't rollback without a transaction"); ThrowCodeError("not_in_transaction"); } else { $self->rollback(); -- cgit v1.2.3-24-g4f1b