X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FADO%2FMicrosoft_SQL_Server.pm;h=77a43d4ec67e0f65bde7233cbc8c04f78a5def09;hb=188038c0d8bf2df07b728e070bee4ca5d2de3026;hp=5e384040c4358759c6ed87303b9fa03ff1ec6a49;hpb=e52d195f8f7e0939fa325cf31e59804e00a30511;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/ADO/Microsoft_SQL_Server.pm b/lib/DBIx/Class/Schema/Loader/DBI/ADO/Microsoft_SQL_Server.pm index 5e38404..77a43d4 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/ADO/Microsoft_SQL_Server.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/ADO/Microsoft_SQL_Server.pm @@ -7,8 +7,11 @@ use base qw/ DBIx::Class::Schema::Loader::DBI::MSSQL /; use mro 'c3'; +use DBIx::Class::Schema::Loader::Utils qw/sigwarn_silencer/; -our $VERSION = '0.07034_01'; +use namespace::clean; + +our $VERSION = '0.07048'; =head1 NAME @@ -26,10 +29,7 @@ See L for usage information. # Silence ADO "Changed database context" warnings sub _switch_db { my $self = shift; - my $warn_handler = $SIG{__WARN__} || sub { warn @_ }; - local $SIG{__WARN__} = sub { - $warn_handler->(@_) unless $_[0] =~ /Changed database context/; - }; + local $SIG{__WARN__} = sigwarn_silencer(qr/Changed database context/); return $self->next::method(@_); } @@ -40,9 +40,9 @@ L, L, L, L -=head1 AUTHOR +=head1 AUTHORS -See L and L. +See L. =head1 LICENSE