From: Matt S Trout Date: Wed, 6 Mar 2019 01:42:15 +0000 (+0000) Subject: add render_expr method X-Git-Tag: v2.000000~3^2~406 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fdbdc002cd8aaa5ad790cc5cbb6d34926fe0d0df;p=dbsrgits%2FSQL-Abstract.git add render_expr method --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 7d62ac8..0425268 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;