Massive multi-create testing, with two regression fixes:
authorPeter Rabbitson <ribasushi@cpan.org>
Fri, 24 Oct 2008 13:29:08 +0000 (13:29 +0000)
committerPeter Rabbitson <ribasushi@cpan.org>
Fri, 24 Oct 2008 13:29:08 +0000 (13:29 +0000)
commit76b8cf987a839f2f4f5108994396a9470e7d3e5a
tree5ed39ba2f869f095d7991708a25ea740d483551d
parent87310237f099566ca0446d7f392b951e8eb40b0c
Massive multi-create testing, with two regression fixes:
- An uninserted row must be passed to find_or_create_related with all uninserted objects on which it depends. Since currently we store those in {_inflated_column} as opposed to {_relationship_data} as we should, a simple ->get_inflated_columns will suffice
- We must find_or_create related rows, as find_or_new might queue multiple identical objects for insertions, which will subsequently violate existing unique constraints
lib/DBIx/Class/Row.pm
t/96multi_create.t