Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishapi
Project
Project
Details
Activity
Releases
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
uplex-varnish
varnishapi
Commits
87977c21
Commit
87977c21
authored
Sep 05, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Query evaluation uses the byte-slice-only integer parser.
parent
72621e58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
query_eval.go
pkg/log/query_eval.go
+2
-2
No files found.
pkg/log/query_eval.go
View file @
87977c21
...
...
@@ -91,8 +91,8 @@ func (expr qExpr) testRecord(rec Record) bool {
// XXX byte slice-only versions of the numeric conversions
switch
expr
.
rhs
.
rhsType
{
case
integer
:
val
,
err
:=
strconv
.
ParseInt
(
string
(
payload
),
10
,
64
)
if
err
!=
nil
{
val
,
ok
:=
parseInt64
(
payload
)
if
!
ok
{
return
false
}
n
:=
expr
.
rhs
.
intVal
...
...
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