From e2bd4b4939d34fc9400c9843b691428d3888ecc4 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 24 May 2013 10:02:16 +1000 Subject: Fix a bug in `resolve-fields` The recursive calls to `resolve-fields` were not being made due to programmer error. This has been fixed, so now the field resolution stuff should work properly again. This is really highlighting the need for better testing. Get on that! --- src/clojure_sql/dsl.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/clojure_sql/dsl.clj b/src/clojure_sql/dsl.clj index 996b55c..8c9c31d 100644 --- a/src/clojure_sql/dsl.clj +++ b/src/clojure_sql/dsl.clj @@ -45,8 +45,8 @@ (ambiguous-error field))))) (defn ^:private resolve-fields [table aliases expression] - (cond (list? expression) (map (partial table aliases) expression) - (vector? expression) (mapv (partial table aliases) expression) + (cond (list? expression) (map (partial resolve-fields table aliases) expression) + (vector? expression) (mapv (partial resolve-fields table aliases) expression) (keyword? expression) (resolve-field table aliases expression) :else expression)) -- cgit v1.2.3