7 use DBICTest ':DiffSQL';
9 my $schema = DBICTest->init_schema();
11 my $rs = $schema->resultset('Artist')->search(
12 [ -and => [ {}, [] ], -or => [ {}, [] ] ],
16 '+columns' => 'artistid',
17 join => [ {}, [ [ {}, {} ] ], {} ],
18 prefetch => [ [ [ {}, [] ], {} ], {}, [ {} ] ],
27 '(SELECT me.artistid FROM artist me)',
32 $rs->count_rs->as_query,
33 '(SELECT COUNT(*) FROM artist me)',
38 $rs->as_subselect_rs->search({}, { columns => 'artistid' })->as_query,
39 '(SELECT me.artistid FROM (SELECT me.artistid FROM artist me) me)',
44 local $TODO = 'Stupid misdesigned as_subselect_rs';
46 $rs->as_subselect_rs->as_query,
47 $rs->as_subselect_rs->search({}, { columns => 'artistid' })->as_query,