use warnings;
use Test::More;
+use Test::Exception;
use lib qw(t/lib);
use DBICTest;
);
is( $cds[0]->title, "Spoonful of bees", "software offset ok" );
+throws_ok {
+ $schema->resultset("CD")->search({}, {
+ rows => 2,
+ software_limit => 1,
+ })->as_query;
+} qr/Unable to generate limited query representation with 'software_limit' enabled/;
@cds = $schema->resultset("CD")->search( {},
{
);
is( $cds[0]->title, "Spoonful of bees", "offset with no limit" );
-
-# based on a failing criteria submitted by waswas
-# requires SQL::Abstract >= 1.20
$it = $schema->resultset("CD")->search(
{ title => [
-and =>