diff options
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r-- | Bugzilla/DB.pm | 5 |
1 files changed, 1 insertions, 4 deletions
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(); |