X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fprefetch%2Fincomplete.t;h=fe939cd7830a755417a4d8a5fc2bf15bc4cc90fc;hb=fb88ca2c952ef2e17f6e8a414079f12f71761ff7;hp=a710fbbb9eb860d1c8ac4014937431eb69783b55;hpb=1759f82f9191bd4ec6ad743d066082242ddbce39;p=dbsrgits%2FDBIx-Class.git diff --git a/t/prefetch/incomplete.t b/t/prefetch/incomplete.t index a710fbb..fe939cd 100644 --- a/t/prefetch/incomplete.t +++ b/t/prefetch/incomplete.t @@ -116,6 +116,7 @@ throws_ok( my $pref_rs = $schema->resultset('Owners')->search({}, { rows => 3, offset => 1, + order_by => 'name', columns => 'name', # only the owner name, still prefetch all the books prefetch => 'books', }); @@ -127,11 +128,13 @@ throws_ok( FROM ( SELECT me.name, me.id FROM owners me + ORDER BY name LIMIT ? OFFSET ? ) me LEFT JOIN books books ON books.owner = me.id + ORDER BY name )', [ [ { sqlt_datatype => "integer" } => 3 ], [ { sqlt_datatype => "integer" } => 1 ] ], 'Expected SQL on complex limited prefetch with non-selected join condition',