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 {
// 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
......
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