database/productrelease.py has duplicate lines causing two queries
Bug #107077 reported by
Brad Crittenden
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Undecided
|
Brad Crittenden |
Bug Description
In ProductRelease the following duplicated code appears:
files = SQLMultipleJoin
files = SQLMultipleJoin
One of the lines needs to be removed to avoid a redundant query.
Changed in launchpad: | |
assignee: | nobody → bradcrittenden |
Changed in launchpad: | |
status: | Unconfirmed → Confirmed |
Changed in launchpad: | |
status: | Confirmed → Fix Committed |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is a bug, but it doesn't cause multiple queries. Simply calling SQLMultipleJoin() does not cause a query to occur -- using "instance.files" afterwards does though.