package DBIx::Class::Schema::Loader::DBI::ODBC; use strict; use warnings; use base 'DBIx::Class::Schema::Loader::DBI'; use mro 'c3'; our $VERSION = '0.07021'; =head1 NAME DBIx::Class::Schema::Loader::DBI::ODBC - L proxy =head1 DESCRIPTION Reblesses into an C<::ODBC::> class when connecting via L. Code stolen from the L ODBC storage. 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; } } } sub _tables_list { my ($self, $opts) = @_; return $self->next::method($opts, undef, undef); } =head1 SEE ALSO L, L, L, L, L, L =head1 AUTHOR See L and L. =head1 LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut 1;