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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
20e0d1f7
Commit
20e0d1f7
authored
Jul 19, 2005
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 300709: Avoid the use of SELECT * - Patch by Frédéric Buclin <LpSolit@gmail.com> r=glob a=myk
parent
534173a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
User.pm
Bugzilla/User.pm
+1
-1
collectstats.pl
collectstats.pl
+4
-5
No files found.
Bugzilla/User.pm
View file @
20e0d1f7
...
...
@@ -1078,7 +1078,7 @@ sub wants_mail {
}
my
$wants_mail
=
$dbh
->
selectrow_array
(
"SELECT
*
$dbh
->
selectrow_array
(
"SELECT
1
FROM email_setting
WHERE user_id = $self->{'id'}
AND relationship = $relationship
...
...
collectstats.pl
View file @
20e0d1f7
...
...
@@ -181,11 +181,11 @@ FIN
}
sub
calculate_dupes
{
SendSQL
(
"SELECT * FROM duplicates"
);
my
$dbh
=
Bugzilla
->
dbh
;
my
$rows
=
$dbh
->
selectall_arrayref
(
"SELECT dupe_of, dupe FROM duplicates"
);
my
%
dupes
;
my
%
count
;
my
@row
;
my
$key
;
my
$changed
=
1
;
...
...
@@ -203,9 +203,8 @@ sub calculate_dupes {
# Create a hash with key "a bug number", value "bug which that bug is a
# direct dupe of" - straight from the duplicates table.
while
(
@row
=
FetchSQLData
())
{
my
$dupe_of
=
shift
@row
;
my
$dupe
=
shift
@row
;
foreach
my
$row
(
@$rows
)
{
my
(
$dupe_of
,
$dupe
)
=
@$row
;
$dupes
{
$dupe
}
=
$dupe_of
;
}
...
...
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