From: Peter Rabbitson Date: Mon, 3 Aug 2009 12:23:37 +0000 (+0000) Subject: Adjust expected sql to match the new 'Track' table definition X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8bc3fbf554405dd6e1f3b1cf6c6f251dcbf4ea00;p=dbsrgits%2FDBIx-Class-Historic.git Adjust expected sql to match the new 'Track' table definition --- diff --git a/t/prefetch/double_prefetch.t b/t/prefetch/double_prefetch.t index b666220..6142098 100644 --- a/t/prefetch/double_prefetch.t +++ b/t/prefetch/double_prefetch.t @@ -23,8 +23,8 @@ is_same_sql( '( SELECT cds.cdid, cds.artist, cds.title, cds.year, cds.genreid, cds.single_track, - single_track.trackid, single_track.cd, single_track.position, single_track.title, single_track.last_updated_on, single_track.last_updated_at, - single_track_2.trackid, single_track_2.cd, single_track_2.position, single_track_2.title, single_track_2.last_updated_on, single_track_2.last_updated_at, + single_track.trackid, single_track.cd, single_track.position, single_track.title, single_track.last_updated_on, single_track.last_updated_at, single_track.small_dt, + single_track_2.trackid, single_track_2.cd, single_track_2.position, single_track_2.title, single_track_2.last_updated_on, single_track_2.last_updated_at, single_track_2.small_dt, cd.cdid, cd.artist, cd.title, cd.year, cd.genreid, cd.single_track FROM artist me LEFT JOIN cd cds ON cds.artist = me.artistid diff --git a/t/prefetch/grouped.t b/t/prefetch/grouped.t index 19fa923..0a61f97 100644 --- a/t/prefetch/grouped.t +++ b/t/prefetch/grouped.t @@ -163,7 +163,9 @@ for ($cd_rs->all) { is_same_sql_bind ( $most_tracks_rs->as_query, '( - SELECT me.cdid, me.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 + SELECT me.cdid, me.track_count, + tracks.trackid, tracks.cd, tracks.position, tracks.title, tracks.last_updated_on, tracks.last_updated_at, tracks.small_dt, + liner_notes.liner_id, liner_notes.notes FROM ( SELECT me.cdid, COUNT( tracks.trackid ) AS track_count FROM cd me