Browse files

Uncomment disabled test (not sure why it was)

  • Loading branch information...
1 parent cc3654a commit 41a5d675ccc9fe5f11e55c4551da9773244fa83d @ribasushi ribasushi committed Feb 23, 2013
Showing with 10 additions and 5 deletions.
  1. +10 −5 t/prefetch/join_type.t
View
15 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

0 comments on commit 41a5d67

Please sign in to comment.