summaryrefslogtreecommitdiffstats
path: root/Token.pm
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-08-17 17:38:54 +0200
committerjustdave%syndicomm.com <>2001-08-17 17:38:54 +0200
commit71e0de63259c504615f50932dbc08c53e8d13c00 (patch)
tree4ad0445e5386f0a54cc70b453b3f5c7027127440 /Token.pm
parentdf2f05d6e5bf2678212df0f78487bf328446a02b (diff)
downloadbugzilla-71e0de63259c504615f50932dbc08c53e8d13c00.tar.gz
bugzilla-71e0de63259c504615f50932dbc08c53e8d13c00.tar.xz
Fix for bug 95731: "INSERT INTO shadowlog" failed because "Table 'shadowlog' not locked", fixed typo in lock tables command.
Patch by Myk Melez <myk@mozilla.org> r= justdave@syndicomm.com
Diffstat (limited to 'Token.pm')
-rw-r--r--Token.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Token.pm b/Token.pm
index 2d5dad2a3..185884c98 100644
--- a/Token.pm
+++ b/Token.pm
@@ -52,7 +52,7 @@ sub IssuePasswordToken {
# Generate a unique token and insert it into the tokens table.
# We have to lock the tokens table before generating the token,
# since the database must be queried for token uniqueness.
- &::SendSQL("LOCK TABLE tokens WRITE");
+ &::SendSQL("LOCK TABLES tokens WRITE");
my $token = GenerateUniqueToken();
my $quotedtoken = &::SqlQuote($token);
my $quotedipaddr = &::SqlQuote($::ENV{'REMOTE_ADDR'});
@@ -166,7 +166,7 @@ Cancelled Because: $cancelaction
close SENDMAIL;
# Delete the token from the database.
- &::SendSQL("LOCK TABLE tokens WRITE");
+ &::SendSQL("LOCK TABLES tokens WRITE");
&::SendSQL("DELETE FROM tokens WHERE token = $quotedtoken");
&::SendSQL("UNLOCK TABLES");
}