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
43d2456a
Commit
43d2456a
authored
Sep 04, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The int val for query evaluation is int64 (VCL INTs also 64 bit).
parent
f4f69737
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
query_parser.go
pkg/log/query_parser.go
+2
-2
query_parser_test.go
pkg/log/query_parser_test.go
+1
-1
No files found.
pkg/log/query_parser.go
View file @
43d2456a
...
...
@@ -79,7 +79,7 @@ const (
type
qRHS
struct
{
strVal
[]
byte
intVal
int
intVal
int
64
floatVal
float64
regex
*
regexp
.
Regexp
rhsType
rhsType
...
...
@@ -256,7 +256,7 @@ func (parser *qParser) parseNum(intOnly bool) (qRHS, error) {
return
rhs
,
parser
.
err
(
"Integer parse error"
)
}
rhs
.
rhsType
=
integer
rhs
.
intVal
=
n
rhs
.
intVal
=
int64
(
n
)
if
err
:=
parser
.
advToken
();
err
!=
nil
{
return
rhs
,
err
}
...
...
pkg/log/query_parser_test.go
View file @
43d2456a
...
...
@@ -44,7 +44,7 @@ type expLHS struct {
type
expRHS
struct
{
str
string
intVal
int
intVal
int
64
floatVal
float64
rhsType
rhsType
}
...
...
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