X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FODBC.pm;h=cdee92e669911272190cd9e0af94b684164e8ed1;hb=802a117545a5bd1a5d20152835a3aa7fb2e7b39f;hp=323d68cab2f971deda0f438a871e65256df3d8b3;hpb=1fa1884903b09903ce89a3814e41bac9e91eea9d;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 323d68c..cdee92e 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/ODBC.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/ODBC.pm @@ -3,21 +3,17 @@ 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 Class::C3; +use mro 'c3'; -our $VERSION = '0.04999_13'; +our $VERSION = '0.07041'; =head1 NAME -DBIx::Class::Schema::Loader::DBI::ODBC - L proxy, currently only for -Microsoft SQL Server +DBIx::Class::Schema::Loader::DBI::ODBC - L proxy =head1 DESCRIPTION -Reblesses into L, -which is a proxy for L when using the -L driver with Microsoft SQL Server. +Reblesses into an C<::ODBC::> class when connecting via L. Code stolen from the L ODBC storage. @@ -27,9 +23,11 @@ See L for usage information. sub _rebless { my $self = shift; - my $dbh = $self->schema->storage->dbh; + + 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 @@ -42,10 +40,17 @@ sub _rebless { } } +sub _tables_list { + my ($self, $opts) = @_; + + return $self->next::method($opts, undef, undef); +} + =head1 SEE ALSO L, -L, +L, +L, L, L, L