X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F88result_set_column.t;h=08828afd5e7aa2df1c09a33311a63af7a074a328;hb=3f6cc7e47e1084bdee20a01d1e05edc0dda4bc0c;hp=5ed86d4ec47bc9cf1536a28097a3e808e514942f;hpb=ae51573612aec70814b81bfe0c3683b824564368;p=dbsrgits%2FDBIx-Class.git diff --git a/t/88result_set_column.t b/t/88result_set_column.t index 5ed86d4..08828af 100644 --- a/t/88result_set_column.t +++ b/t/88result_set_column.t @@ -5,9 +5,9 @@ use Test::More; use lib qw(t/lib); use DBICTest; -my $schema = DBICTest::init_schema(); +my $schema = DBICTest->init_schema(); -plan tests => 8; +plan tests => 9; my $cd; my $rs = $cd = $schema->resultset("CD")->search({}); @@ -42,3 +42,8 @@ $psrs = $schema->resultset('CD')->search({}, ok(defined($psrs->get_column('count')), '+select/+as arrayref count'); ok(defined($psrs->get_column('addedtitle')), '+select/+as title'); +{ + my $rs = $schema->resultset("CD")->search({}, { prefetch => 'artist' }); + my $rsc = $rs->get_column('year'); + is( $rsc->{_parent_resultset}->{attrs}->{prefetch}, undef, 'prefetch wiped' ); +}