X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FODBC.pm;h=10415ce0a1b0599c152df492e2e1aa14597ee42b;hb=8793567fbf7e508f772a464328f321caa243b45d;hp=814ef1bc5ed57c33b6ef7c114e35b24a6a697d03;hpb=8763ffdab92908d1a424dc68087ff051a2991b6e;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 814ef1b..10415ce 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/ODBC.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/ODBC.pm @@ -10,14 +10,11 @@ our $VERSION = '0.05001'; =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 +24,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,6 +41,12 @@ sub _rebless { } } +sub _tables_list { + my $self = shift; + + return $self->next::method(undef, undef); +} + =head1 SEE ALSO L,