summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2011-08-15 14:38:08 +0200
committerByron Jones <bjones@mozilla.com>2011-08-15 14:38:08 +0200
commit640ec1663b430fa616c2d5af14edbd6dafb85a89 (patch)
treeb90880ca2b6886802e1a0676f35494c6ffebd0a8
parent36e4d1fddb336e0ebfb61e0b7870e2b60c666ef5 (diff)
downloadbugzilla-640ec1663b430fa616c2d5af14edbd6dafb85a89.tar.gz
bugzilla-640ec1663b430fa616c2d5af14edbd6dafb85a89.tar.xz
Bug 678959: Make GenerateUniqueToken work for all tables
r=LpSolit, a=LpSolit
-rw-r--r--Bugzilla/Token.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm
index 69751e905..c339c5984 100644
--- a/Bugzilla/Token.pm
+++ b/Bugzilla/Token.pm
@@ -245,7 +245,7 @@ sub GenerateUniqueToken {
$column ||= "token";
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) {
++$tries;