X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultSetColumn.pm;h=2679803e6124a412049434833e97ef42797860b7;hb=bf7aed106962cc8db897f6712cec2b8b5e15ecb7;hp=3248ecba092f814a3f8db37a56983d035ef18ef2;hpb=4fa7bc220537c54f6cb7ca6d2ff7b3c0f68e1233;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/ResultSetColumn.pm b/lib/DBIx/Class/ResultSetColumn.pm index 3248ecb..2679803 100644 --- a/lib/DBIx/Class/ResultSetColumn.pm +++ b/lib/DBIx/Class/ResultSetColumn.pm @@ -38,7 +38,7 @@ sub new { $class = ref $class if ref $class; my $new_parent_rs = $rs->search_rs; # we don't want to mess up the original, so clone it my $attrs = $new_parent_rs->_resolved_attrs; - $new_parent_rs->{attrs}->{$_} = undef for qw(prefetch include_columns +select +as); # prefetch, include_columns, +select, +as cause additional columns to be fetched + $new_parent_rs->{attrs}->{prefetch} = undef; # prefetch cause additional columns to be fetched # If $column can be found in the 'as' list of the parent resultset, use the # corresponding element of its 'select' list (to keep any custom column @@ -54,7 +54,7 @@ sub new { return $new; } -=head2 as_query +=head2 as_query (EXPERIMENTAL) =over 4 @@ -68,9 +68,11 @@ Returns the SQL query and bind vars associated with the invocant. This is generally used as the RHS for a subquery. +B: This feature is still experimental. + =cut -sub as_query { return shift->_resultset->as_query } +sub as_query { return shift->_resultset->as_query(@_) } =head2 next