X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSybase%2FASE%2FNoBindVars.pm;h=3ee6cdbef67665535365029dad29b5bd5d6bd5db;hp=ffd72c4be1216c8cf969cb3723ebfca8e842800e;hb=87b1255103d7b8873b225416cb381c50011f4c06;hpb=817ac9e927cd8e29d1bf553714379e54df5dbef7 diff --git a/lib/DBIx/Class/Storage/DBI/Sybase/ASE/NoBindVars.pm b/lib/DBIx/Class/Storage/DBI/Sybase/ASE/NoBindVars.pm index ffd72c4..3ee6cdb 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase/ASE/NoBindVars.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase/ASE/NoBindVars.pm @@ -8,7 +8,6 @@ use base qw/ DBIx::Class::Storage::DBI::Sybase::ASE /; use mro 'c3'; -use List::Util 'first'; use Scalar::Util 'looks_like_number'; use namespace::clean; @@ -42,7 +41,7 @@ sub interpolate_unquoted { return $self->next::method(@_) if not defined $value or not defined $type; - if (my $key = first { $type =~ /$_/i } keys %noquote) { + if (my ($key) = grep { $type =~ /$_/i } keys %noquote) { return 1 if $noquote{$key}->($value); } elsif ($self->is_datatype_numeric($type) && $number->($value)) {