Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
4adb6602
Commit
4adb6602
authored
Mar 12, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 285407: User cannot log in on PostgreSQL
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=bugreport, a=myk
parent
66b4c871
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
User.pm
Bugzilla/User.pm
+6
-4
No files found.
Bugzilla/User.pm
View file @
4adb6602
...
...
@@ -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"
}))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment