From ca9aa05518cbae16e4f8932ca3c37690ad12354d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 15 Aug 2011 20:40:15 +0800 Subject: Bug 678959: Make GenerateUniqueToken work for all tables r=LpSolit, a=LpSolit --- Bugzilla/Token.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1