vendor: Update everything
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4620
This commit is contained in:
43
vendor/github.com/cznic/ql/expr.go
generated
vendored
43
vendor/github.com/cznic/ql/expr.go
generated
vendored
@@ -5,6 +5,7 @@
|
||||
package ql
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"math/big"
|
||||
"regexp"
|
||||
@@ -779,6 +780,13 @@ func (o *binaryOperation) eval(execCtx *execCtx, ctx map[interface{}]interface{}
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
case []byte:
|
||||
switch y := b.(type) {
|
||||
case []byte:
|
||||
return bytes.Equal(x, y), nil
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
default:
|
||||
return invOp2(a, b, op)
|
||||
}
|
||||
@@ -930,6 +938,13 @@ func (o *binaryOperation) eval(execCtx *execCtx, ctx map[interface{}]interface{}
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
case []byte:
|
||||
switch y := b.(type) {
|
||||
case []byte:
|
||||
return bytes.Compare(x, y) < 0, nil
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
default:
|
||||
return invOp2(a, b, op)
|
||||
}
|
||||
@@ -1081,6 +1096,13 @@ func (o *binaryOperation) eval(execCtx *execCtx, ctx map[interface{}]interface{}
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
case []byte:
|
||||
switch y := b.(type) {
|
||||
case []byte:
|
||||
return bytes.Compare(x, y) <= 0, nil
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
default:
|
||||
return invOp2(a, b, op)
|
||||
}
|
||||
@@ -1232,6 +1254,13 @@ func (o *binaryOperation) eval(execCtx *execCtx, ctx map[interface{}]interface{}
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
case []byte:
|
||||
switch y := b.(type) {
|
||||
case []byte:
|
||||
return bytes.Compare(x, y) >= 0, nil
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
default:
|
||||
return invOp2(a, b, op)
|
||||
}
|
||||
@@ -1403,6 +1432,13 @@ func (o *binaryOperation) eval(execCtx *execCtx, ctx map[interface{}]interface{}
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
case []byte:
|
||||
switch y := b.(type) {
|
||||
case []byte:
|
||||
return !bytes.Equal(x, y), nil
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
default:
|
||||
return invOp2(a, b, op)
|
||||
}
|
||||
@@ -1574,6 +1610,13 @@ func (o *binaryOperation) eval(execCtx *execCtx, ctx map[interface{}]interface{}
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
case []byte:
|
||||
switch y := b.(type) {
|
||||
case []byte:
|
||||
return bytes.Equal(x, y), nil
|
||||
default:
|
||||
return invOp2(x, y, op)
|
||||
}
|
||||
default:
|
||||
return invOp2(a, b, op)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user