From 2f6d3e851f988523c8b87519f5f0e3222ecb1d9c Mon Sep 17 00:00:00 2001 From: Markus Date: Fri, 27 Sep 2024 12:45:17 +0100 Subject: [PATCH] allow empty slice for 'in' queries --- bind.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bind.go b/bind.go index e698039..9c6fe67 100644 --- a/bind.go +++ b/bind.go @@ -175,10 +175,6 @@ func In(query string, args ...interface{}) (string, []interface{}, error) { anySlices = true flatArgsCount += meta[i].length - - if meta[i].length == 0 { - return "", nil, errors.New("empty slice passed to 'in' query") - } } else { meta[i].i = arg flatArgsCount++