X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FADO.pm;h=e4322651de8beadbbbb7e716fb047a385360d8a4;hb=dc783fab900d073db1fb0e86b709cbb65bd364b7;hp=ad2a60d1bd778100e748329dcd50c259d77f0310;hpb=835a650ffbbce01781e4b7ce4a25a78344bddb46;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/ADO.pm b/lib/DBIx/Class/Schema/Loader/DBI/ADO.pm index ad2a60d..e432265 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/ADO.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/ADO.pm @@ -5,7 +5,7 @@ use warnings; use base 'DBIx::Class::Schema::Loader::DBI'; use mro 'c3'; -our $VERSION = '0.07023'; +our $VERSION = '0.07045'; =head1 NAME @@ -20,27 +20,21 @@ See L for usage information. =cut sub _rebless { - my $self = shift; - - return if ref $self ne __PACKAGE__; - - my $dbh = $self->schema->storage->dbh; - my $dbtype = eval { $dbh->get_info(17) }; - unless ( $@ ) { - # Translate the backend name into a perl identifier - $dbtype =~ s/\W/_/gi; - my $class = "DBIx::Class::Schema::Loader::DBI::ADO::${dbtype}"; - if ($self->load_optional_class($class) && !$self->isa($class)) { - bless $self, $class; - $self->_rebless; - } - } -} - -sub _tables_list { - my ($self, $opts) = @_; + my $self = shift; - return $self->next::method($opts, undef, undef); + return if ref $self ne __PACKAGE__; + + my $dbh = $self->schema->storage->dbh; + my $dbtype = eval { $dbh->get_info(17) }; + unless ( $@ ) { + # Translate the backend name into a perl identifier + $dbtype =~ s/\W/_/gi; + my $class = "DBIx::Class::Schema::Loader::DBI::ADO::${dbtype}"; + if ($self->load_optional_class($class) && !$self->isa($class)) { + bless $self, $class; + $self->_rebless; + } + } } sub _filter_tables { @@ -58,9 +52,9 @@ L, L, L, L -=head1 AUTHOR +=head1 AUTHORS -See L and L. +See L. =head1 LICENSE