X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2Fmysql.pm;h=a2aa2fcbfe054e05af9aa90daf04d1b8ff88ffed;hb=b1dbf7164ee06fa23aef5a799dd57df0357514ba;hp=ae55f1f8c1a0d3ad168d66c76d64b610e9a493fe;hpb=45150bc4f3b983d64477728e2bd8e722c10c7a31;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/mysql.pm b/lib/DBIx/Class/Storage/DBI/mysql.pm index ae55f1f..a2aa2fc 100644 --- a/lib/DBIx/Class/Storage/DBI/mysql.pm +++ b/lib/DBIx/Class/Storage/DBI/mysql.pm @@ -5,7 +5,6 @@ use warnings; use base qw/DBIx::Class::Storage::DBI/; -use List::Util 'first'; use namespace::clean; __PACKAGE__->sql_maker_class('DBIx::Class::SQLMaker::MySQL'); @@ -69,7 +68,7 @@ sub _prep_for_execute { ) { # this is just a plain-ish name, which has been literal-ed for # whatever reason - $target_name = first { defined $_ } ($1, $2); + $target_name = (defined $1) ? $1 : $2; } else { # this is something very complex, perhaps a custom result source or whatnot @@ -79,7 +78,7 @@ sub _prep_for_execute { } local $sm->{_modification_target_referenced_re} = - qr/ (?next::method(@_);