From 5b3377006c8b17a8437464748fb7d3c975b9b020 Mon Sep 17 00:00:00 2001 From: Florian Obernbrger <99478384+florian-obernberger@users.noreply.github.com> Date: Thu, 2 Jun 2022 22:03:03 +0200 Subject: [PATCH] Update query.go --- query.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/query.go b/query.go index 33f93bf..213a2f9 100644 --- a/query.go +++ b/query.go @@ -191,17 +191,21 @@ func in(x, y interface{}) (bool, error) { // notIn checks if x doesn't exists in y e.g: in("id", []int{1,3,5,8}) func notIn(x, y interface{}) (bool, error) { b, err := in(x, y) + fmt.Printf("x: %s\n", x) + fmt.Printf("y: %s\n", y) return !b, err } // holds checks if x contains y e.g: holds("[1,2,3]", 1) func holds(x, y interface{}) (bool, error) { - return in(y, x) + b, err := in(y, x) + return b, err } // notHolds checks if x doesn't contain y e.g: notHolds("[1,2,3]", 1) func notHolds(x, y interface{}) (bool, error) { - return notIn(y, x) + b, err := notIn(y, x) + return b, err } // lenEq checks if the string/array/list value is equal