summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-18 06:57:26 +0100
committermkanat%kerio.com <>2005-02-18 06:57:26 +0100
commitd3f8bf365e5b93f58497a25e07fde7ce30884f9d (patch)
treeba45ba2aa22039ecd440ca4c5c7fa421eb158456 /checksetup.pl
parentf95d1faba79c94bcf3bf936334d6bb10e03c93b2 (diff)
downloadbugzilla-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 'checksetup.pl')
-rwxr-xr-xchecksetup.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/checksetup.pl b/checksetup.pl
index c99beb3a5..79095ee3a 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -2722,7 +2722,7 @@ if (GetFieldDef('bugs', 'long_desc')) {
print "bugs to process; a line of dots will be printed for each 50.\n\n";
$| = 1;
- $dbh->do("LOCK TABLES bugs write, longdescs write, profiles write");
+ $dbh->bz_lock_tables('bugs write', 'longdescs write', 'profiles write');
$dbh->do('DELETE FROM longdescs');
@@ -2823,7 +2823,7 @@ if (GetFieldDef('bugs', 'long_desc')) {
DropField('bugs', 'long_desc');
- $dbh->do("UNLOCK TABLES");
+ $dbh->bz_unlock_tables();
}
@@ -2836,7 +2836,7 @@ if (GetFieldDef('bugs_activity', 'field')) {
'mediumint not null, ADD INDEX (fieldid)');
print "Populating new fieldid field ...\n";
- $dbh->do("LOCK TABLES bugs_activity WRITE, fielddefs WRITE");
+ $dbh->bz_lock_tables('bugs_activity WRITE', 'fielddefs WRITE');
my $sth = $dbh->prepare('SELECT DISTINCT field FROM bugs_activity');
$sth->execute();
@@ -2856,7 +2856,7 @@ if (GetFieldDef('bugs_activity', 'field')) {
}
$dbh->do("UPDATE bugs_activity SET fieldid = $id WHERE field = $q");
}
- $dbh->do("UNLOCK TABLES");
+ $dbh->bz_unlock_tables();
DropField('bugs_activity', 'field');
}