зеркало из https://github.com/mozilla/gecko-dev.git
Bug 285407: User cannot log in on PostgreSQL
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=bugreport, a=myk
This commit is contained in:
Родитель
72bbdcb739
Коммит
c51dc6e5f2
|
@ -204,12 +204,14 @@ sub queries {
|
|||
my $dbh = Bugzilla->dbh;
|
||||
my $sth = $dbh->prepare(q{ SELECT
|
||||
DISTINCT name, query, linkinfooter,
|
||||
IF(whine_queries.id IS NOT NULL, 1, 0)
|
||||
CASE WHEN whine_queries.id
|
||||
IS NOT NULL THEN 1 ELSE 0 END,
|
||||
UPPER(name) AS uppername
|
||||
FROM namedqueries
|
||||
LEFT JOIN whine_queries
|
||||
ON whine_queries.query_name = name
|
||||
WHERE userid=?
|
||||
ORDER BY UPPER(name)});
|
||||
ORDER BY uppername});
|
||||
$sth->execute($self->{id});
|
||||
|
||||
my @queries;
|
||||
|
@ -494,8 +496,8 @@ sub derive_groups {
|
|||
$group_sth ||= $dbh->prepare(q{SELECT grantor_id
|
||||
FROM group_group_map
|
||||
WHERE member_id=?
|
||||
AND grant_type=' .
|
||||
GROUP_MEMBERSHIP . '});
|
||||
AND grant_type = } .
|
||||
GROUP_MEMBERSHIP);
|
||||
$group_sth->execute($group);
|
||||
while (my ($groupid) = $group_sth->fetchrow_array) {
|
||||
if (!defined($groupidschecked{"$groupid"})) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче