From: Matt S Trout Date: Wed, 6 Mar 2019 01:42:15 +0000 (+0000) Subject: add render_expr method X-Git-Tag: v1.90_01~385 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6082a464aff7af26afeb6eb7f4faf1efabe9d6d4;p=dbsrgits%2FSQL-Abstract.git add render_expr method --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 0561390..b910617 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -519,6 +519,11 @@ sub render_aqt { die "notreached: $k"; } +sub render_expr { + my ($self, $expr) = @_; + $self->render_aqt($self->expand_expr($expr)); +} + sub _expand_expr { my ($self, $expr, $logic, $default_scalar_to) = @_; local our $Default_Scalar_To = $default_scalar_to if $default_scalar_to;