Skip to content

Commit

Permalink
Move process-query-results to avoid compile error. Oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Newman authored and Richard Newman committed Jul 13, 2009
1 parent 7cc662e commit da50139
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/com/twinql/clojure/mql.clj
Expand Up @@ -16,19 +16,19 @@
[m]
(into {} (filter (fn [[k v]] ((complement nil?) v)) m)))

(defn- process-multiple-query-results [res names]
(defn- process-query-result [res]
(when res
(if (= "/api/status/ok" (:code res))
(map process-query-result
(vals (select-keys res (map keyword names))))
(:result res)
(throw (new Exception
(str "Non-OK status from MQL query: "
(:status res)))))))

(defn- process-query-result [res]
(defn- process-multiple-query-results [res names]
(when res
(if (= "/api/status/ok" (:code res))
(:result res)
(map process-query-result
(vals (select-keys res (map keyword names))))
(throw (new Exception
(str "Non-OK status from MQL query: "
(:status res)))))))
Expand Down

0 comments on commit da50139

Please sign in to comment.