From 15af00e0de260b775aac09018795ca5240db122f Mon Sep 17 00:00:00 2001 From: Nuttanart Pornprasitsakul Date: Thu, 15 Feb 2018 22:44:13 +0700 Subject: [PATCH] Remove nil argument to where --- src/honeysql/helpers.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/honeysql/helpers.cljc b/src/honeysql/helpers.cljc index a0a0341..77948ad 100644 --- a/src/honeysql/helpers.cljc +++ b/src/honeysql/helpers.cljc @@ -84,7 +84,7 @@ [m pred logic-op])) (defn where [& args] - (let [[m pred] (prep-where args)] + (let [[m pred] (prep-where (remove nil? args))] (if (nil? pred) m (assoc m :where pred))))