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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
1ffb7bf1
Commit
1ffb7bf1
authored
Apr 07, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Queries should fully qualify the field name, in case there is more
than one table that have a field with that name.
parent
55ab6c6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
buglist.cgi
buglist.cgi
+18
-13
No files found.
buglist.cgi
View file @
1ffb7bf1
...
@@ -317,6 +317,7 @@ sub GenerateSQL {
...
@@ -317,6 +317,7 @@ sub GenerateSQL {
my
$chartid
;
my
$chartid
;
my
$f
;
my
$f
;
my
$ff
;
my
$t
;
my
$t
;
my
$q
;
my
$q
;
my
$v
;
my
$v
;
...
@@ -435,31 +436,31 @@ sub GenerateSQL {
...
@@ -435,31 +436,31 @@ sub GenerateSQL {
",equals"
=>
sub
{
",equals"
=>
sub
{
$term
=
"$f = $q"
;
$term
=
"$f
f
= $q"
;
},
},
",notequals"
=>
sub
{
",notequals"
=>
sub
{
$term
=
"$f != $q"
;
$term
=
"$f
f
!= $q"
;
},
},
",casesubstring"
=>
sub
{
",casesubstring"
=>
sub
{
$term
=
"INSTR($f, $q)"
;
$term
=
"INSTR($f
f
, $q)"
;
},
},
",(substring|substr)"
=>
sub
{
",(substring|substr)"
=>
sub
{
$term
=
"INSTR(LOWER($f), "
.
lc
(
$q
)
.
")"
;
$term
=
"INSTR(LOWER($f
f
), "
.
lc
(
$q
)
.
")"
;
},
},
",notsubstring"
=>
sub
{
",notsubstring"
=>
sub
{
$term
=
"INSTR(LOWER($f), "
.
lc
(
$q
)
.
") = 0"
;
$term
=
"INSTR(LOWER($f
f
), "
.
lc
(
$q
)
.
") = 0"
;
},
},
",regexp"
=>
sub
{
",regexp"
=>
sub
{
$term
=
"LOWER($f) REGEXP $q"
;
$term
=
"LOWER($f
f
) REGEXP $q"
;
},
},
",notregexp"
=>
sub
{
",notregexp"
=>
sub
{
$term
=
"LOWER($f) NOT REGEXP $q"
;
$term
=
"LOWER($f
f
) NOT REGEXP $q"
;
},
},
",lessthan"
=>
sub
{
",lessthan"
=>
sub
{
$term
=
"$f < $q"
;
$term
=
"$f
f
< $q"
;
},
},
",greaterthan"
=>
sub
{
",greaterthan"
=>
sub
{
$term
=
"$f > $q"
;
$term
=
"$f
f
> $q"
;
},
},
",anyexact"
=>
sub
{
",anyexact"
=>
sub
{
my
@list
;
my
@list
;
...
@@ -467,18 +468,18 @@ sub GenerateSQL {
...
@@ -467,18 +468,18 @@ sub GenerateSQL {
if
(
$w
eq
"---"
&&
$f
!~
/milestone/
)
{
if
(
$w
eq
"---"
&&
$f
!~
/milestone/
)
{
$w
=
""
;
$w
=
""
;
}
}
push
(
@list
,
"$f = "
.
SqlQuote
(
$w
));
push
(
@list
,
"$f
f
= "
.
SqlQuote
(
$w
));
}
}
$term
=
join
(
" OR "
,
@list
);
$term
=
join
(
" OR "
,
@list
);
},
},
",anywords"
=>
sub
{
",anywords"
=>
sub
{
$term
=
join
(
" OR "
,
@
{
GetByWordList
(
$f
,
$v
)});
$term
=
join
(
" OR "
,
@
{
GetByWordList
(
$f
f
,
$v
)});
},
},
",allwords"
=>
sub
{
",allwords"
=>
sub
{
$term
=
join
(
" AND "
,
@
{
GetByWordList
(
$f
,
$v
)});
$term
=
join
(
" AND "
,
@
{
GetByWordList
(
$f
f
,
$v
)});
},
},
",nowords"
=>
sub
{
",nowords"
=>
sub
{
my
@list
=
@
{
GetByWordList
(
$f
,
$v
)};
my
@list
=
@
{
GetByWordList
(
$f
f
,
$v
)};
if
(
@list
)
{
if
(
@list
)
{
$term
=
"NOT ("
.
join
(
" OR "
,
@list
)
.
")"
;
$term
=
"NOT ("
.
join
(
" OR "
,
@list
)
.
")"
;
}
}
...
@@ -582,6 +583,10 @@ sub GenerateSQL {
...
@@ -582,6 +583,10 @@ sub GenerateSQL {
if
(
$debug
)
{
if
(
$debug
)
{
print
"<P>$key ($f , $t ) => "
;
print
"<P>$key ($f , $t ) => "
;
}
}
$ff
=
$f
;
if
(
$f
!~
/\./
)
{
$ff
=
"bugs.$f"
;
}
&
$ref
;
&
$ref
;
if
(
$debug
)
{
if
(
$debug
)
{
print
"$f , $t , $term"
;
print
"$f , $t , $term"
;
...
...
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