From: Will Hawes Date: Sat, 28 Jan 2006 19:38:32 +0000 (+0000) Subject: update docs for count() with GROUP BY X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bda4c2b883245d9cb6e9f61038b5ca93d53b48e9;p=dbsrgits%2FDBIx-Class-Historic.git update docs for count() with GROUP BY --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index f3617e7..a10b504 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -368,6 +368,12 @@ Performs an SQL C with the same query as the resultset was built with to find the number of elements. If passed arguments, does a search on the resultset and counts the results of that. +Note: When using C with C, L emulates C +using C. Some databases (notably SQLite) do +not support C with multiple columns. If you are using such a +database, you should only use columns from the main table in your C +clause. + =cut sub count { @@ -932,8 +938,7 @@ Can also be used to simulate an SQL C. =head2 group_by (arrayref) -A arrayref of columns to group by. Can include columns of joined tables. Note -note that L doesn't work on grouped resultsets. +A arrayref of columns to group by. Can include columns of joined tables. group_by => [qw/ column1 column2 ... /]