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=c9b172764bb7f6350d0ab87774308119817556f4;hb=306bf770bf08b06f92863808b1938f2fc704acb0;hp=64198fc5af4a09d0a56e6ce0806d7216d739ac1b;hpb=c8845f2e67c636fbfb597a4562847cc80c4e5f28;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 64198fc..c9b1727 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,10 +7,11 @@ use base qw/ DBIx::Class::Schema::Loader::DBI::MSSQL /; use mro 'c3'; -use Carp::Clan qw/^DBIx::Class/; +use DBIx::Class::Schema::Loader::Utils qw/sigwarn_silencer/; + use namespace::clean; -our $VERSION = '0.07009'; +our $VERSION = '0.07047'; =head1 NAME @@ -23,15 +24,25 @@ Proxy for L when using L. See L for usage information. +=cut + +# Silence ADO "Changed database context" warnings +sub _switch_db { + my $self = shift; + local $SIG{__WARN__} = sigwarn_silencer(qr/Changed database context/); + return $self->next::method(@_); +} + =head1 SEE ALSO +L, L, L, L, L -=head1 AUTHOR +=head1 AUTHORS -See L and L. +See L. =head1 LICENSE