projects
/
scpubgit/Q-Branch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Install DBIC-compatible ident renderer
[scpubgit/Q-Branch.git]
/
lib
/
SQL
/
Abstract.pm
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
330780a
..
4cc007a
100644
(file)
--- a/
lib/SQL/Abstract.pm
+++ b/
lib/SQL/Abstract.pm
@@
-301,6
+301,11
@@
sub new {
s/\A\s+//, s/\s+\Z// for $sql;
return [ $sql, @bind ];
};
+ $opt{expand_op}{ident} = sub {
+ my ($self, undef, $body) = @_;
+ $body = $body->from if Scalar::Util::blessed($body);
+ $self->_expand_ident(ident => $body);
+ };
}
}