summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-09-29 15:36:10 +1000
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-09-29 15:36:10 +1000
commit9230395b82b59edd9053d062a4f2f9481432e64f (patch)
tree891b3876b58d08bffae21aa3991a616b196e8a94
parent595963b76b6c408c48a9f8a109755887eabd05a8 (diff)
Clear up the ambiguous field error message
The ambiguous field error message used to specify that it was a case where multiple tables were present, but that's not always true. If you're trying to work on a query that has been "subqueried" then you'll also get the error (arguably that should have a different error message, but I'll come back to that later).
-rw-r--r--src/clojure_sql/dsl.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clojure_sql/dsl.clj b/src/clojure_sql/dsl.clj
index 8e4a24d..8264e24 100644
--- a/src/clojure_sql/dsl.clj
+++ b/src/clojure_sql/dsl.clj
@@ -21,7 +21,7 @@
;; }
(defn ^:private ambiguous-error [field & [query]]
- (throw (ex-info (str "Ambiguous field " field " in query with more than one table")
+ (throw (ex-info (str "Ambiguous field " field " in query")
{:field field
:query query})))