From: Johannes Plunien Date: Tue, 15 Jul 2008 08:36:20 +0000 (+0000) Subject: Skip custom query sources X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=90c11f68f30949201236de790ecbf710ac3c26be;p=dbsrgits%2FDBIx-Class-Historic.git Skip custom query sources --- diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index 155d35c..3b08665 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -69,6 +69,9 @@ sub parse { foreach my $moniker (sort @monikers) { my $source = $dbicschema->source($moniker); + + # Skip custom query sources + next if ref($source->name); # Its possible to have multiple DBIC source using same table next if $seen_tables{$source->name}++;