From: Matt S Trout Date: Fri, 20 Apr 2012 11:15:54 +0000 (+0000) Subject: ASC purge: t/prefetch/grouped.t X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0862548188c332046a24e0f1b980540332b2bb71;p=dbsrgits%2FDBIx-Class-Historic.git ASC purge: t/prefetch/grouped.t --- diff --git a/t/prefetch/grouped.t b/t/prefetch/grouped.t index 760e381..663c74e 100644 --- a/t/prefetch/grouped.t +++ b/t/prefetch/grouped.t @@ -173,13 +173,13 @@ for ($cd_rs->all) { LEFT JOIN track tracks ON tracks.cd = me.cdid WHERE ( me.cdid IS NOT NULL ) GROUP BY me.cdid - ORDER BY track_count DESC, maxtr ASC + ORDER BY track_count DESC, maxtr LIMIT ? ) me LEFT JOIN track tracks ON tracks.cd = me.cdid LEFT JOIN liner_notes liner_notes ON liner_notes.liner_id = me.cdid WHERE ( me.cdid IS NOT NULL ) - ORDER BY track_count DESC, maxtr ASC + ORDER BY track_count DESC, maxtr )', [[$ROWS => 2]], 'next() query generated expected SQL', @@ -352,10 +352,10 @@ for ($cd_rs->all) { FROM (SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, COUNT( tags.tag ) AS test_count FROM cd me LEFT JOIN tags tags ON tags.cd = me.cdid GROUP BY me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, tags.tag - ORDER BY tags.tag ASC LIMIT ?) + ORDER BY tags.tag LIMIT ?) me LEFT JOIN tags tags ON tags.cd = me.cdid - ORDER BY tags.tag ASC + ORDER BY tags.tag ) }, [[$ROWS => 1]]); }