X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultSetColumn.pm;h=35f8fa4574f942a803dbef001f56b717f8e2aecb;hb=82c82838e7942dbd19e60e7a1ca8cade5c6a65d6;hp=133e6ffb404d649e650fa5cb0b090ea766a12dbc;hpb=2bb7b40b94dd99970f48179d0dc945852a3a1557;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/ResultSetColumn.pm b/lib/DBIx/Class/ResultSetColumn.pm index 133e6ff..35f8fa4 100644 --- a/lib/DBIx/Class/ResultSetColumn.pm +++ b/lib/DBIx/Class/ResultSetColumn.pm @@ -155,8 +155,8 @@ sub sum { =back Runs a query using the function on the column and returns the value. For example - $rs $schema->resultset("CD")->search({}); - $rs->get_column('title')->func('LENGTH'); + $rs = $schema->resultset("CD")->search({}); + $length = $rs->get_column('title')->func('LENGTH'); Produces the following SQL SELECT LENGTH( title ) from cd me