diff options
author | mkanat%kerio.com <> | 2005-02-18 06:57:26 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-18 06:57:26 +0100 |
commit | d3f8bf365e5b93f58497a25e07fde7ce30884f9d (patch) | |
tree | ba45ba2aa22039ecd440ca4c5c7fa421eb158456 /Bugzilla/Series.pm | |
parent | f95d1faba79c94bcf3bf936334d6bb10e03c93b2 (diff) | |
download | bugzilla-d3f8bf365e5b93f58497a25e07fde7ce30884f9d.tar.gz bugzilla-d3f8bf365e5b93f58497a25e07fde7ce30884f9d.tar.xz |
Bug 280503: Replace "LOCK/UNLOCK TABLES" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat,a=myk
Diffstat (limited to 'Bugzilla/Series.pm')
-rw-r--r-- | Bugzilla/Series.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Series.pm b/Bugzilla/Series.pm index a4bd6654f..53e6fbabf 100644 --- a/Bugzilla/Series.pm +++ b/Bugzilla/Series.pm @@ -170,7 +170,7 @@ sub writeToDatabase { my $self = shift; my $dbh = Bugzilla->dbh; - $dbh->do("LOCK TABLES series_categories WRITE, series WRITE"); + $dbh->bz_lock_tables('series_categories WRITE', 'series WRITE'); my $category_id = getCategoryID($self->{'category'}); my $subcategory_id = getCategoryID($self->{'subcategory'}); @@ -210,7 +210,7 @@ sub writeToDatabase { || &::ThrowCodeError("missing_series_id", { 'series' => $self }); } - $dbh->do("UNLOCK TABLES"); + $dbh->bz_unlock_tables(); } # Check whether a series with this name, category and subcategory exists in |