The local $self->{moniker_parts} code did not make a copy of
$self->moniker_parts before unshifting to it, so modifications were made
to the original reference, breaking ->rescan.
Revision history for Perl extension DBIx::Class::Schema::Loader
+ - fix a bug in the automatic multischema clashing moniker disambiguation
+ code that overwrote $loader->moniker_parts
+
0.07013 2011-11-17 23:12:47
- automatically prefix database/schema to clashing monikers for
the same table name in multischema configurations
delete $self->monikers->{$_->sql_name} for @$tables;
- my $moniker_parts = $self->{moniker_parts};
+ my $moniker_parts = [ @{ $self->moniker_parts } ];
my $have_schema = 1 if any { $_ eq 'schema' } @{ $self->moniker_parts };
my $have_database = 1 if any { $_ eq 'database' } @{ $self->moniker_parts };