19 lines
397 B
Go
Raw Normal View History

2024-02-24 17:26:16 +02:00
package memoryexecutor
import (
"github.com/pikami/cosmium/parsers"
)
2024-12-07 22:29:26 +02:00
func (r rowContext) misc_In(arguments []interface{}) bool {
value := r.resolveSelectItem(arguments[0].(parsers.SelectItem))
2024-02-24 17:26:16 +02:00
for i := 1; i < len(arguments); i++ {
2024-12-07 22:29:26 +02:00
compareValue := r.resolveSelectItem(arguments[i].(parsers.SelectItem))
2024-02-24 17:26:16 +02:00
if compareValues(value, compareValue) == 0 {
return true
}
}
return false
}