X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fprefetch%2Fwith_limit.t;h=71a8ceb2122401180f9546ea83f8145bea2a86b8;hb=ghpr%2Fclosed%2Finspiring_eef9b484;hp=9012a9a4948e697e247a919702e1bedbc63a1f4d;hpb=c97338007ede15e7c62095a642b3de382a3508bd;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/prefetch/with_limit.t b/t/prefetch/with_limit.t index 9012a9a..71a8ceb 100644 --- a/t/prefetch/with_limit.t +++ b/t/prefetch/with_limit.t @@ -80,8 +80,7 @@ is_same_sql_bind ( ON tracks.cd = cds.cdid WHERE artwork.cd_id IS NULL OR tracks.title != ? - GROUP BY me.artistid + ?, me.artistid, me.name, cds.cdid, cds.artist, cds.title, cds.year, cds.genreid, cds.single_track - ORDER BY name DESC, cds.artist, cds.year ASC + ORDER BY name DESC )', [ $bind_int_resolved->(), # outer select @@ -90,7 +89,6 @@ is_same_sql_bind ( $bind_int_resolved->(), # inner group_by [ $ROWS => 3 ], $bind_vc_resolved->(), # outer where - $bind_int_resolved->(), # outer group_by ], 'Expected SQL on complex limited prefetch' ); @@ -144,7 +142,7 @@ is ( throws_ok ( sub { $use_prefetch->single }, - qr/resultsets prefetching has_many/, + qr/\Qsingle() can not be used on resultsets collapsing a has_many/, 'single() with multiprefetch is illegal', ); @@ -190,7 +188,6 @@ is_same_sql_bind ( JOIN artist artist ON artist.artistid = me.artist WHERE ( ( artist.name = ? AND me.year = ? ) ) - ORDER BY tracks.cd )', [ [ { sqlt_datatype => 'varchar', sqlt_size => 100, dbic_colname => 'artist.name' } => 'foo' ],