From: Peter Rabbitson Date: Sat, 23 Feb 2013 14:13:32 +0000 (+0100) Subject: Uncomment disabled test (not sure why it was) X-Git-Tag: v0.08209~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=41a5d675ccc9fe5f11e55c4551da9773244fa83d;hp=cc3654a1513c5234c8abd7561bb88063bbf011ca;p=dbsrgits%2FDBIx-Class.git Uncomment disabled test (not sure why it was) --- diff --git a/t/prefetch/join_type.t b/t/prefetch/join_type.t index 48f9712..380dc0f 100644 --- a/t/prefetch/join_type.t +++ b/t/prefetch/join_type.t @@ -20,11 +20,16 @@ my $nulls = { # make sure null-prefetches do not screw with the final sql: for my $type (keys %$nulls) { -# is_same_sql_bind ( -# $cds->search({}, { prefetch => { artist => $nulls->{$type} } })->as_query, -# $cds->as_query, -# "same sql with null $type prefetch" -# ); + is_same_sql_bind ( + $cds->search({}, { prefetch => { artist => $nulls->{$type} } })->as_query, + '( SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, + artist.artistid, artist.name, artist.rank, artist.charfield + FROM cd me + JOIN artist artist + ON artist.artistid = me.artist + )', [], + "same sql with null $type prefetch" + ); } # make sure left join is carried only starting from the first has_many