[Bast-commits] r5784 - DBIx-Class/0.08/trunk/lib/DBIx/Class

wdh at dev.catalyst.perl.org wdh at dev.catalyst.perl.org
Fri Mar 20 15:23:40 GMT 2009


Author: wdh
Date: 2009-03-20 15:23:40 +0000 (Fri, 20 Mar 2009)
New Revision: 5784

Modified:
   DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm
Log:
clarify need for scalarref when using db functions with 'default_value' attribute

Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm	2009-03-20 07:20:24 UTC (rev 5783)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm	2009-03-20 15:23:40 UTC (rev 5784)
@@ -125,8 +125,9 @@
 =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<DBIx::Class::Schema/deploy>.
+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<DBIx::Class::Schema/deploy>.
 
 =item sequence
 




More information about the Bast-commits mailing list