tpl/collections: Fix where on type mismatches

Fixes #8353
This commit is contained in:
Bjørn Erik Pedersen
2021-04-23 11:05:15 +02:00
parent 0d86a32d8f
commit e4dc9a82b5
2 changed files with 14 additions and 1 deletions

View File

@@ -87,7 +87,8 @@ func (ns *Namespace) checkCondition(v, mv reflect.Value, op string) (bool, error
var ima []int64
var fma []float64
var sma []string
if mv.Type() == v.Type() {
if mv.Kind() == v.Kind() {
switch v.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
iv := v.Int()