X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FAbstract.pm;h=4fef40283785c01b1bad3b13eec305113750e2e3;hb=cb6d0edbf56bf56f7cb65aa0d888aef9d0a06925;hp=fdd63992732aac755878026cc08caa3f6c6ae1f5;hpb=908083b2aff13e3224518b7fefb2dcb0c5fb0803;p=dbsrgits%2FSQL-Abstract.git diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index fdd6399..4fef402 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -301,11 +301,11 @@ sub new { s/\A\s+//, s/\s+\Z// for $sql; return [ $sql, @bind ]; }; - $opt{expand_op}{ident} = sub { + $opt{expand_op}{ident} = __PACKAGE__->make_unop_expander(sub { my ($self, undef, $body) = @_; $body = $body->from if Scalar::Util::blessed($body); $self->_expand_ident(ident => $body); - }; + }); } }