summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/query.cgi b/query.cgi
index aaabc1529..622c1588c 100755
--- a/query.cgi
+++ b/query.cgi
@@ -70,7 +70,7 @@ if ($userid) {
# If the query name contains invalid characters, don't import.
$name =~ /[<>&]/ && next;
trick_taint($name);
- $dbh->bz_lock_tables('namedqueries WRITE');
+ $dbh->bz_start_transaction();
my $query = $dbh->selectrow_array(
"SELECT query FROM namedqueries " .
"WHERE userid = ? AND name = ?",
@@ -80,7 +80,7 @@ if ($userid) {
"(userid, name, query) VALUES " .
"(?, ?, ?)", undef, ($userid, $name, $value));
}
- $dbh->bz_unlock_tables();
+ $dbh->bz_commit_transaction();
}
$cgi->remove_cookie($cookiename);
}