summaryrefslogtreecommitdiffstats
path: root/editmilestones.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-04-05 06:52:03 +0200
committermkanat%kerio.com <>2005-04-05 06:52:03 +0200
commitf5f31fc070588c2075dd13a0fbabe8117e3aad76 (patch)
tree4a3bb48995143c84fcb8f222b420814e1c6e8eaf /editmilestones.cgi
parentd71d64d9372f1556cec96434179b4cb1f9668e92 (diff)
downloadbugzilla-f5f31fc070588c2075dd13a0fbabe8117e3aad76.tar.gz
bugzilla-f5f31fc070588c2075dd13a0fbabe8117e3aad76.tar.xz
Bug 286235: Implicit joins should be replaced by explicit joins - installment A
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=joel, a=myk
Diffstat (limited to 'editmilestones.cgi')
-rwxr-xr-xeditmilestones.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi
index 0edbd1897..796643e9e 100755
--- a/editmilestones.cgi
+++ b/editmilestones.cgi
@@ -79,9 +79,10 @@ sub TestMilestone ($$)
# does the product exist?
my $sth = $dbh->prepare_cached("
SELECT products.name, value
- FROM milestones, products
- WHERE milestones.product_id = products.id
- AND products.name = ?
+ FROM milestones
+ INNER JOIN products
+ ON milestones.product_id = products.id
+ WHERE products.name = ?
AND value = ?");
trick_taint($product);