projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
07d404a
)
Skip custom query sources
Johannes Plunien [Tue, 15 Jul 2008 08:36:20 +0000 (08:36 +0000)]
lib/SQL/Translator/Parser/DBIx/Class.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Parser/DBIx/Class.pm
b/lib/SQL/Translator/Parser/DBIx/Class.pm
index
155d35c
..
3b08665
100644
(file)
--- 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}++;