X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F61findnot.t;h=84794940e4a798e1aae080035079e9ce74868047;hb=d2f4cc4a86585dbaf0bda33cf9c1d4403b6397a4;hp=17f64fd4ea073498d25fb5e67604436e37d8542e;hpb=550adccc763b6887aa2ce43b1d1d9fb48b240763;p=dbsrgits%2FDBIx-Class.git diff --git a/t/61findnot.t b/t/61findnot.t index 17f64fd..8479494 100644 --- a/t/61findnot.t +++ b/t/61findnot.t @@ -54,7 +54,8 @@ ok($art, 'Artist found by key in the resultset'); $artist_rs = $schema->resultset("Artist"); warning_is { $artist_rs->find({}, { key => 'primary' }) -} "DBIx::Class::ResultSet::find(): Query returned more than one row", "Non-unique find generated a cursor inexhaustion warning"; +} "DBIx::Class::ResultSet::find(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single" + => "Non-unique find generated a cursor inexhaustion warning"; $artist_rs = $schema->resultset("Artist")->search({}, { prefetch => 'cds' }); warning_is {