X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FODBC.pm;h=a7fdc7904445dd6e002ce9059d6dc1b2742c5a9b;hb=46564a42215c5309753f3e0609ae1adddf68d083;hp=84316c471fe477bbb2c29b2eef78c3f7c655afcf;hpb=659817cfc6f8f5dfa8dfcfa2992679d745294e3e;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 84316c4..a7fdc79 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.07003'; +our $VERSION = '0.07048_01'; =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