[Bast-commits] r6613 - DBIx-Class/0.08/branches/type_aware_update/lib/DBIx/Class

ribasushi at dev.catalyst.perl.org ribasushi at dev.catalyst.perl.org
Thu Jun 11 07:23:54 GMT 2009


Author: ribasushi
Date: 2009-06-11 07:23:54 +0000 (Thu, 11 Jun 2009)
New Revision: 6613

Modified:
   DBIx-Class/0.08/branches/type_aware_update/lib/DBIx/Class/ResultSource.pm
Log:
Add attribute doc

Modified: DBIx-Class/0.08/branches/type_aware_update/lib/DBIx/Class/ResultSource.pm
===================================================================
--- DBIx-Class/0.08/branches/type_aware_update/lib/DBIx/Class/ResultSource.pm	2009-06-11 07:21:20 UTC (rev 6612)
+++ DBIx-Class/0.08/branches/type_aware_update/lib/DBIx/Class/ResultSource.pm	2009-06-11 07:23:54 UTC (rev 6613)
@@ -116,6 +116,18 @@
 when cloning objects using L<DBIx::Class::Row/copy>. It is also used by
 L<DBIx::Class::Schema/deploy>.
 
+=item is_numeric
+
+Set this to a true or false value (not C<undef>) to explicitly specify
+if this column contains numeric data. This controls how set_column
+decides whether to consider a column dirty after an update: if
+C<is_numeric> is true a numeric comparison C<< <=> >> will take place
+instead of the usual C<eq>
+
+If not specified the storage class will attempt to figure this out on
+first access to the column, based on the column C<data_type>. The
+result will be cached in this attribute.
+
 =item is_foreign_key
 
 Set this to a true value for a column that contains a key from a




More information about the Bast-commits mailing list