X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FODBC.pm;h=47acea32b602c2f7405bc40aa10f985433c993fe;hb=38a64290c6c15538795ff18e6bc6c1ddcb67aab3;hp=bba28cda4f9b092b8f0be71dd3534b4e20c3cfdb;hpb=3b71e53bd47bd29213e8fe12b3f9a2d1a229b587;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/ODBC.pm b/lib/DBIx/Class/Schema/Loader/DBI/ODBC.pm index bba28cd..47acea3 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/ODBC.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/ODBC.pm @@ -3,10 +3,9 @@ package DBIx::Class::Schema::Loader::DBI::ODBC; use strict; use warnings; use base 'DBIx::Class::Schema::Loader::DBI'; -use Carp::Clan qw/^DBIx::Class/; use mro 'c3'; -our $VERSION = '0.07007'; +our $VERSION = '0.07049'; =head1 NAME @@ -23,28 +22,22 @@ See L for usage information. =cut sub _rebless { - my $self = shift; - - return if ref $self ne __PACKAGE__; - -# stolen from DBIC ODBC storage - 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::ODBC::${dbtype}"; - if ($self->load_optional_class($class) && !$self->isa($class)) { - bless $self, $class; - $self->_rebless; + my $self = shift; + + return if ref $self ne __PACKAGE__; + + # stolen from DBIC ODBC storage + 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::ODBC::${dbtype}"; + if ($self->load_optional_class($class) && !$self->isa($class)) { + bless $self, $class; + $self->_rebless; + } } - } -} - -sub _tables_list { - my ($self, $opts) = @_; - - return $self->next::method($opts, undef, undef); } =head1 SEE ALSO @@ -55,9 +48,9 @@ L, L, L, L -=head1 AUTHOR +=head1 AUTHORS -See L and L. +See L. =head1 LICENSE