Commit ca9aa055 authored by Byron Jones's avatar Byron Jones

Bug 678959: Make GenerateUniqueToken work for all tables

r=LpSolit, a=LpSolit
parent 10b07dbd
...@@ -245,7 +245,7 @@ sub GenerateUniqueToken { ...@@ -245,7 +245,7 @@ sub GenerateUniqueToken {
$column ||= "token"; $column ||= "token";
my $dbh = Bugzilla->dbh; my $dbh = Bugzilla->dbh;
my $sth = $dbh->prepare("SELECT userid FROM $table WHERE $column = ?"); my $sth = $dbh->prepare("SELECT 1 FROM $table WHERE $column = ?");
while ($duplicate) { while ($duplicate) {
++$tries; ++$tries;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment