From: Will Hawes Date: Fri, 20 Mar 2009 15:23:40 +0000 (+0000) Subject: clarify need for scalarref when using db functions with 'default_value' attribute X-Git-Tag: v0.08100~29 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4858fea7bf09b41c07659bf0e06b6d8b5fd4c6e0;p=dbsrgits%2FDBIx-Class.git clarify need for scalarref when using db functions with 'default_value' attribute --- diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index 0d49c00..b5ac2a1 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -125,8 +125,9 @@ L. =item default_value Set this to the default value which will be inserted into a column -by the database. Can contain either a value or a function. This is -currently only used by L. +by the database. Can contain either a value or a function (use a +reference to a scalar e.g. C<\'now()'> if you want a function). This +is currently only used by L. =item sequence