projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7fb2240
)
handle slightly weird case of partial $from
Matt S Trout [Mon, 16 Apr 2012 19:57:34 +0000 (19:57 +0000)]
lib/DBIx/Class/SQLMaker/Converter.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/SQLMaker/Converter.pm
b/lib/DBIx/Class/SQLMaker/Converter.pm
index
a928e36
..
d290911
100644
(file)
--- a/
lib/DBIx/Class/SQLMaker/Converter.pm
+++ b/
lib/DBIx/Class/SQLMaker/Converter.pm
@@
-132,6
+132,10
@@
sub _join_to_dq {
my $cur_dq = $self->_table_to_dq($from);
+ if (!@joins or @joins == 1 and ref($joins[0]) eq 'HASH') {
+ return $cur_dq;
+ }
+
foreach my $join (@joins) {
my ($to, $on) = @$join;