From: Matt S Trout Date: Tue, 5 Mar 2019 03:07:46 +0000 (+0000) Subject: default scalar in expand X-Git-Tag: v1.90_01~387 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=54d3140f4e59643a85e29b542ebd115b5ef37ddb;p=dbsrgits%2FSQL-Abstract.git default scalar in expand --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 217a228..fae5024 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -504,8 +504,9 @@ sub where { } sub expand_expr { - my ($self, $expr, $default) = @_; - $self->_expand_expr($expr, undef, $default); + my ($self, $expr, $default_scalar_to) = @_; + local our $Default_Scalar_To = $default_scalar_to if $default_scalar_to; + $self->_expand_expr($expr, undef); } sub render_aqt {