X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fprefetch%2Fvia_search_related.t;h=a9f3f8a0218b8aefb049a46a3bfa0d69ae1791cc;hb=36b5936987ea98eac8a6d6f57fd983d6127957bb;hp=f07f1cd162015e24f8cf80840ecee0fd6ee1bc9f;hpb=bac6c4fb44d23391b40e5fcf53809c0ca0c75dc7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/prefetch/via_search_related.t b/t/prefetch/via_search_related.t index f07f1cd..a9f3f8a 100644 --- a/t/prefetch/via_search_related.t +++ b/t/prefetch/via_search_related.t @@ -37,6 +37,7 @@ lives_ok ( sub { }, 'search_related prefetch with order_by works'); +TODO: { local $TODO = 'Unqualified columns in where clauses can not be fixed without an SQLA rewrite' if SQL::Abstract->VERSION < 2; lives_ok ( sub { my $no_prefetch = $schema->resultset('Track')->search_related(cd => { @@ -56,14 +57,15 @@ lives_ok ( sub { } ); - is($use_prefetch->count, $no_prefetch->count, 'counts with and without prefetch match'); is( scalar ($use_prefetch->all), scalar ($no_prefetch->all), "Amount of returned rows is right" ); + is($use_prefetch->count, $no_prefetch->count, 'counts with and without prefetch match'); }, 'search_related prefetch with condition referencing unqualified column of a joined table works'); +} lives_ok (sub {