Commit 25d5d986 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 282705: Remove newlines from LEFT JOIN parts of SQL in Search.pm

r=lpsolit, a=justdave
parent cc73e8e4
...@@ -453,9 +453,9 @@ sub init { ...@@ -453,9 +453,9 @@ sub init {
$chartseq = "CC$sequence"; $chartseq = "CC$sequence";
$sequence++; $sequence++;
} }
push(@supptables, "LEFT JOIN cc cc_$chartseq push(@supptables, "LEFT JOIN cc cc_$chartseq "
ON bugs.bug_id = cc_$chartseq.bug_id . "ON bugs.bug_id = cc_$chartseq.bug_id "
AND cc_$chartseq.who = $match"); . "AND cc_$chartseq.who = $match");
$term = "cc_$chartseq.who IS NOT NULL"; $term = "cc_$chartseq.who IS NOT NULL";
}, },
"^cc,(?:notequals),(%\\w+%)" => sub { "^cc,(?:notequals),(%\\w+%)" => sub {
...@@ -465,9 +465,9 @@ sub init { ...@@ -465,9 +465,9 @@ sub init {
$chartseq = "CC$sequence"; $chartseq = "CC$sequence";
$sequence++; $sequence++;
} }
push(@supptables, "LEFT JOIN cc cc_$chartseq push(@supptables, "LEFT JOIN cc cc_$chartseq "
ON bugs.bug_id = cc_$chartseq.bug_id . "ON bugs.bug_id = cc_$chartseq.bug_id "
AND cc_$chartseq.who = $match"); . "AND cc_$chartseq.who = $match");
$term = "cc_$chartseq.who IS NULL"; $term = "cc_$chartseq.who IS NULL";
}, },
"^cc,(anyexact|substring)" => sub { "^cc,(anyexact|substring)" => sub {
...@@ -603,9 +603,9 @@ sub init { ...@@ -603,9 +603,9 @@ sub init {
if (Param("insidergroup") && !&::UserInGroup(Param("insidergroup"))) { if (Param("insidergroup") && !&::UserInGroup(Param("insidergroup"))) {
$extra = "AND $table.isprivate < 1"; $extra = "AND $table.isprivate < 1";
} }
push(@supptables, "LEFT JOIN longdescs $table push(@supptables, "LEFT JOIN longdescs $table "
ON $table.bug_id = bugs.bug_id $extra . "ON $table.bug_id = bugs.bug_id $extra "
AND $table.who IN ($match)"); . "AND $table.who IN ($match)");
$term = "$table.who IS NOT NULL"; $term = "$table.who IS NOT NULL";
}, },
"^commenter," => sub { "^commenter," => sub {
......
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