mirror of
https://github.com/pikami/cosmium.git
synced 2025-02-02 05:57:45 +00:00
19 lines
397 B
Go
19 lines
397 B
Go
package memoryexecutor
|
|
|
|
import (
|
|
"github.com/pikami/cosmium/parsers"
|
|
)
|
|
|
|
func (r rowContext) misc_In(arguments []interface{}) bool {
|
|
value := r.resolveSelectItem(arguments[0].(parsers.SelectItem))
|
|
|
|
for i := 1; i < len(arguments); i++ {
|
|
compareValue := r.resolveSelectItem(arguments[i].(parsers.SelectItem))
|
|
if compareValues(value, compareValue) == 0 {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|