From: Matt S Trout Date: Tue, 18 Sep 2018 01:16:13 +0000 (+0000) Subject: select fields now handled by expand/render code X-Git-Tag: v2.000000~3^2~445 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d12b7d8a14c49bc433f93736533baee16eba4321;p=dbsrgits%2FSQL-Abstract.git select fields now handled by expand/render code --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 126fc7a..dbd9943 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -468,8 +468,9 @@ sub select { sub _select_fields { my ($self, $fields) = @_; - return ref $fields eq 'ARRAY' ? join ', ', map { $self->_quote($_) } @$fields - : $fields; + return $self->_render_expr( + $self->_expand_maybe_list_expr($fields, undef, '-ident') + ); } #======================================================================