diff options
author | mkanat%kerio.com <> | 2005-02-18 05:57:26 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-18 05:57:26 +0000 |
commit | d3f8bf365e5b93f58497a25e07fde7ce30884f9d (patch) | |
tree | ba45ba2aa22039ecd440ca4c5c7fa421eb158456 /query.cgi | |
parent | Bug 280093 : Update "Add to Sidbar" HTML text and JS addsidebar() function (diff) | |
download | bugzilla-d3f8bf365e5b93f58497a25e07fde7ce30884f9d.tar.gz bugzilla-d3f8bf365e5b93f58497a25e07fde7ce30884f9d.tar.bz2 bugzilla-d3f8bf365e5b93f58497a25e07fde7ce30884f9d.zip |
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 'query.cgi')
-rwxr-xr-x | query.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -88,7 +88,7 @@ if ($userid) { # If the query name contains invalid characters, don't import. $name =~ /[<>&]/ && next; trick_taint($name); - $dbh->do("LOCK TABLES namedqueries WRITE"); + $dbh->bz_lock_tables('namedqueries WRITE'); my $query = $dbh->selectrow_array( "SELECT query FROM namedqueries " . "WHERE userid = ? AND name = ?", @@ -98,7 +98,7 @@ if ($userid) { "(userid, name, query) VALUES " . "(?, ?, ?)", undef, ($userid, $name, $value)); } - $dbh->do("UNLOCK TABLES"); + $dbh->bz_unlock_tables(); } $cgi->send_cookie(-name => $cookiename, -expires => "Fri, 01-Jan-2038 00:00:00 GMT"); @@ -358,7 +358,7 @@ $vars->{'bug_severity'} = \@::legal_severity; # Boolean charts my @fields; push(@fields, { name => "noop", description => "---" }); -push(@fields, Bugzilla->dbh->bz_get_field_defs()); +push(@fields, $dbh->bz_get_field_defs()); $vars->{'fields'} = \@fields; # Creating new charts - if the cmd-add value is there, we define the field |