From 86dc892d212787d81dee8768f0f0106817f16483 Mon Sep 17 00:00:00 2001 From: Dan Dukeson Date: Thu, 15 Sep 2011 12:09:39 +0100 Subject: [PATCH] test demonstrating that we cant group by an arbitrary column --- test/clojureql/test/core.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/clojureql/test/core.clj b/test/clojureql/test/core.clj index d43f0eb..96f593f 100644 --- a/test/clojureql/test/core.clj +++ b/test/clojureql/test/core.clj @@ -222,7 +222,10 @@ (select (where (= :admin true))) (aggregate [:count/*] [:name [:country :as :user_country]])) (str "SELECT users.name,users.country AS user_country,count(*) FROM users " - "WHERE (users.admin = true) GROUP BY users.name,users.country"))) + "WHERE (users.admin = true) GROUP BY users.name,users.country") + (-> (table :users) + (aggregate [] [:birthday])) + (str "SELECT users.* FROM users GROUP BY users.birthday"))) (testing "join with aggregate" (let [photo-counts-by-user (-> (table :photos)