warnings_exist {
$artist_rs->find({})
-} qr/\QDBIx::Class::ResultSet::find(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single/
+} qr/\QQuery returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single/
=> "Non-unique find generated a cursor inexhaustion warning";
throws_ok {
} qr/Unable to satisfy requested constraint 'primary'/;
for (1, 0) {
+ local $ENV{DBIC_NULLABLE_KEY_NOWARN};
warnings_like
sub {
$artist_rs->find({ artistid => undef }, { key => 'primary' })