Commit 8832bf88 authored by jouni%heikniemi.net's avatar jouni%heikniemi.net

Bug 250547: Make FlagTypes use INNER JOIN instead of comma operator.

Patch by Tomas Kopal <Tomas.Kopal@altap.cz> r=jouni, a=justdave
parent 0ed8d173
......@@ -326,8 +326,8 @@ sub sqlify_criteria {
# Add inclusions to the query, which simply involves joining the table
# by flag type ID and target product/component.
push(@$tables, ", flaginclusions");
push(@criteria, "flagtypes.id = flaginclusions.type_id");
push(@$tables, "INNER JOIN flaginclusions ON " .
"flagtypes.id = flaginclusions.type_id");
push(@criteria, "(flaginclusions.product_id = $product_id " .
" OR flaginclusions.product_id IS NULL)");
push(@criteria, "(flaginclusions.component_id = $component_id " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment