X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FADO%2FMS_Jet.pm;h=e494412c50210ebf730a30a174204488220bf697;hb=8e6c80c9ded48d2f9450de4200c4490b13d0c942;hp=b802b78f58806bcf1523e2ebbb9a1a3fb1ca6a18;hpb=2ae19e70a562eae7d346d247fbdba10c81a13a67;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/ADO/MS_Jet.pm b/lib/DBIx/Class/Schema/Loader/DBI/ADO/MS_Jet.pm index b802b78..e494412 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/ADO/MS_Jet.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/ADO/MS_Jet.pm @@ -7,11 +7,10 @@ use base qw/ DBIx::Class::Schema::Loader::DBI::ODBC::ACCESS /; use mro 'c3'; -use Carp::Clan qw/^DBIx::Class/; use Try::Tiny; use namespace::clean; -our $VERSION = '0.07010'; +our $VERSION = '0.07011'; =head1 NAME @@ -192,6 +191,33 @@ sub _columns_info_for { return $result; } +# Trap and ignore OLE warnings from nonexistant comments tables. + +sub _table_comment { + my $self = shift; + + my $warn_handler = $SIG{__WARN__} || sub { warn @_ }; + + local $SIG{__WARN__} = sub { + $warn_handler->(@_) unless $_[0] =~ /cannot find the input table/; + }; + + $self->next::method(@_); +} + +sub _column_comment { + my $self = shift; + + my $warn_handler = $SIG{__WARN__} || sub { warn @_ }; + + local $SIG{__WARN__} = sub { + $warn_handler->(@_) unless $_[0] =~ /cannot find the input table/; + }; + + $self->next::method(@_); +} + + =head1 SEE ALSO L,