From 42864b332fe75ca4fe01d61a579a8bc50e0d2862 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Thu, 20 Jun 2013 15:51:42 +1000 Subject: Fix a stupid null-pointer exception --- src/clojure_sql/compiler.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/clojure_sql/compiler.clj') diff --git a/src/clojure_sql/compiler.clj b/src/clojure_sql/compiler.clj index c7f907f..b35abce 100644 --- a/src/clojure_sql/compiler.clj +++ b/src/clojure_sql/compiler.clj @@ -93,7 +93,8 @@ (no-args-operator-error (name (first ex)))) 1 (if (unary? op-name) (do-m compiled-op <- op - (return (str compiled-op (first vals))))) + (return (str compiled-op (first vals)))) + (return (first vals))) (return (string/join " " vals)))) unary? (do (assert (= num-args 1) (str "Unary operator `" (first ex) "` must take one argument")) (do-m :let [exprs (compile-exprs ex)] -- cgit v1.2.3