From: Prog Rammer Date: Mon, 27 Aug 2012 16:18:37 +0000 (-0500) Subject: simple group by test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f28a96141bf8e2dfceac51d3257779a7410dc6a;p=dbsrgits%2FData-Query.git simple group by test --- diff --git a/t/expr-helpers.t b/t/expr-helpers.t index 79ee600..76fc0ba 100644 --- a/t/expr-helpers.t +++ b/t/expr-helpers.t @@ -58,3 +58,11 @@ dq_sql_is ['SELECT * FROM foo WHERE x = ?', binding(1)], 'simple select with where and bind'; +dq_sql_is + Group ( + [ Identifier('x') ], + Select([ Identifier('*') ], Identifier('foo')), + ), + ['SELECT * FROM foo GROUP BY x'], + 'simple group by'; +