From: Ben Hutton Date: Fri, 8 Aug 2014 12:55:03 +0000 (+0100) Subject: Update ResultSet.pm X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fghpr%2Fapplied%2Fas_8f3c1445;p=dbsrgits%2FDBIx-Class-Historic.git Update ResultSet.pm Call me pedantic, but I think moving the statment to a new line makes it more prominant. I may have seen it before heading to irc to ask why it's broken. Yes I should have read the section fully, but I didn't. Also made the two statements use the same terminiolgy to be consistent and add context. --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index cdbbd6c..735066a 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -4156,7 +4156,7 @@ names: B You will almost always need a corresponding L attribute when you use L, to instruct DBIx::Class how to store the result of the column. -Also note that the L attribute has nothing to do with the SQL-side 'AS' +Also note that the L attribute has nothing to do with the SQL-side C identifier aliasing. You can however alias a function, so you can use it in e.g. an C clause. This is done via the C<-as> B for details. +with the same name already exists>) as shown below. + +The L attribute hasB with the SQL-side identifier +aliasing C. See L for details. $rs = $schema->resultset('Employee')->search(undef, { select => [