[Bast-commits] r7816 -
DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Fri Oct 23 08:52:50 GMT 2009
Author: ribasushi
Date: 2009-10-23 08:52:49 +0000 (Fri, 23 Oct 2009)
New Revision: 7816
Modified:
DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm
Log:
{ is_foreign_key_constraint => 0, on_delete => undef } is a valid construct - no need to carp
Modified: DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm 2009-10-23 08:51:05 UTC (rev 7815)
+++ DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm 2009-10-23 08:52:49 UTC (rev 7816)
@@ -184,7 +184,7 @@
if ($fk_constraint) {
$cascade->{$c} = $rel_info->{attrs}{"on_$c"};
}
- else {
+ elsif ( $rel_info->{attrs}{"on_$c"} ) {
carp "SQLT attribute 'on_$c' was supplied for relationship '$moniker/$rel', which does not appear to be a foreign constraint. "
. "If you are sure that SQLT must generate a constraint for this relationship, add 'is_foreign_key_constraint => 1' to the attributes.\n";
}
More information about the Bast-commits
mailing list