diff options
author | lpsolit%gmail.com <> | 2007-11-15 05:56:31 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-11-15 05:56:31 +0100 |
commit | 0dadaed4ffb582ccfbc2356e7715007819d1cea2 (patch) | |
tree | a44cf83a9670d0a5e2ebc63a1dcc27a012924fc1 /query.cgi | |
parent | ec38a93e110be22f7316871994f91dc53712bcd2 (diff) | |
download | bugzilla-0dadaed4ffb582ccfbc2356e7715007819d1cea2.tar.gz bugzilla-0dadaed4ffb582ccfbc2356e7715007819d1cea2.tar.xz |
Bug 403824: Replace table locks in most Bugzilla files with transactions - Patch by Emmanuel Seyman <eseyman@linagora.com> r/a=mkanat
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |