X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F76select.t;h=7560d2c5990c5758b19447dac8d56fcdb6681d6e;hb=bda35a4c8068f8e2e263ee09c581905297dd6974;hp=8c46a7e20032797bcdb488873032d0f92d29f1af;hpb=6b7d3398c161dcdb9b1a9cf590ba2d424ca2a9dc;p=dbsrgits%2FDBIx-Class.git diff --git a/t/76select.t b/t/76select.t index 8c46a7e..7560d2c 100644 --- a/t/76select.t +++ b/t/76select.t @@ -64,9 +64,7 @@ my $cds = $schema->resultset ('CD')->search ({}, { order_by => 'me.cdid'}); # ma cmp_ok ($cds->count, '>', 2, 'Initially populated with more than 2 CDs'); my $table = $cds->result_source->name; - -$DB::single = 1; - +$table = $$table if ref $table eq 'SCALAR'; my $subsel = $cds->search ({}, { columns => [qw/cdid title/], from => \ "(SELECT cdid, title FROM $table LIMIT 2) me",