Commit 87977c21 authored by Geoff Simmons's avatar Geoff Simmons

Query evaluation uses the byte-slice-only integer parser.

parent 72621e58
...@@ -91,8 +91,8 @@ func (expr qExpr) testRecord(rec Record) bool { ...@@ -91,8 +91,8 @@ func (expr qExpr) testRecord(rec Record) bool {
// XXX byte slice-only versions of the numeric conversions // XXX byte slice-only versions of the numeric conversions
switch expr.rhs.rhsType { switch expr.rhs.rhsType {
case integer: case integer:
val, err := strconv.ParseInt(string(payload), 10, 64) val, ok := parseInt64(payload)
if err != nil { if !ok {
return false return false
} }
n := expr.rhs.intVal n := expr.rhs.intVal
......
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