From: Peter Rabbitson Date: Sun, 28 Jun 2009 12:42:48 +0000 (+0000) Subject: Whoops X-Git-Tag: v0.08108~37^2~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a57827b62bf8e08de2217d86893dba3737668b3b;p=dbsrgits%2FDBIx-Class.git Whoops --- diff --git a/t/prefetch/grouped.t b/t/prefetch/grouped.t index 526fc45..d329586 100644 --- a/t/prefetch/grouped.t +++ b/t/prefetch/grouped.t @@ -161,9 +161,9 @@ for ($cd_rs->all) { is_same_sql_bind ( $most_tracks_rs->as_query, '( - SELECT me.cdid, COUNT( tracks.trackid ), tracks.trackid, tracks.cd, tracks.position, tracks.title, tracks.last_updated_on, tracks.last_updated_at, liner_notes.liner_id, liner_notes.notes + SELECT me.cdid, track_count, tracks.trackid, tracks.cd, tracks.position, tracks.title, tracks.last_updated_on, tracks.last_updated_at, liner_notes.liner_id, liner_notes.notes FROM ( - SELECT me.cdid, COUNT( tracks.trackid ) + SELECT me.cdid, COUNT( tracks.trackid ) AS track_count FROM cd me LEFT JOIN track tracks ON tracks.cd = me.cdid WHERE ( tracks.cd IS NOT NULL )