[Bast-commits] r8286 - in DBIx-Class/0.08/trunk: . lib/DBIx/Class/Relationship

abraxxa at dev.catalyst.perl.org abraxxa at dev.catalyst.perl.org
Tue Jan 12 17:04:18 GMT 2010


Author: abraxxa
Date: 2010-01-12 17:04:18 +0000 (Tue, 12 Jan 2010)
New Revision: 8286

Modified:
   DBIx-Class/0.08/trunk/Changes
   DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship/HasOne.pm
Log:
fixed a typo in Changes
more detailed explanation for the warning about has_one/might_have rels on nullable columns


Modified: DBIx-Class/0.08/trunk/Changes
===================================================================
--- DBIx-Class/0.08/trunk/Changes	2010-01-12 06:44:49 UTC (rev 8285)
+++ DBIx-Class/0.08/trunk/Changes	2010-01-12 17:04:18 UTC (rev 8286)
@@ -16,7 +16,7 @@
         - Better isolation of RNO-limited queries from the rest of a
           prefetching resultset
         - New MSSQL specific resultset attribute to allow hacky ordered
-          subquery suppot
+          subquery support
         - Fix nasty schema/dbhandle leak due to SQL::Translator
 
 0.08115 2009-12-10 09:02:00 (CST)

Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship/HasOne.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship/HasOne.pm	2010-01-12 06:44:49 UTC (rev 8285)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship/HasOne.pm	2010-01-12 17:04:18 UTC (rev 8286)
@@ -82,7 +82,7 @@
     my $key = $1;
     my $column_info = $class->column_info($key);
     if ( $column_info->{is_nullable} ) {
-      carp(qq'"might_have/has_one" must not be on columns with is_nullable set to true ($class/$key) ');
+      carp(qq'"might_have/has_one" must not be on columns with is_nullable set to true ($class/$key). This might indicate an incorrect use of those relationship helpers instead of belongs_to.');
     }
   }
 }




More information about the Bast-commits mailing list