Fix many_to_many bridges going back to the same table
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 29 Jul 2014 13:04:08 +0000 (14:04 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 29 Jul 2014 13:13:29 +0000 (14:13 +0100)
commit239fa6bcab5973d85739273213c1a36e3e5dc7f9
tree2576655bece70c13b39e08db08d0c39bb7a2ee31
parentdab9a47a1ff7f40d68d72bc9c5ab2b3fdd87f878
Fix many_to_many bridges going back to the same table

The loop only looked at the moniker name, not the key columns, so
would pick a random one. The tests didn't cover the actual self-m2m
bridge at all, so this only got noticed by the Oracle loader being
unstable in which one it picked and triggering the no-rewrite test.

Also clean up the other m2m rel tests and group them correctly.
Changes
Makefile.PL
lib/DBIx/Class/Schema/Loader/RelBuilder.pm
t/lib/dbixcsl_common_tests.pm