X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FMSSQL.pm;h=ca553795f2f9a9343b251638c509df0e5f5f4feb;hb=075aff9752f9c6ec020cc040b6f70e131be0f4ad;hp=5007cbeec29daca3504879efd2c71e9edb8809a2;hpb=59f547384b29161d10f97f931f9149e26abd13ca;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm index 5007cbe..ca55379 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm @@ -38,36 +38,6 @@ sub _setup { $self->_set_quote_char_and_name_sep; } -# drop bad tables when constructing list -sub _tables_list { - my $self = shift; - - my @tables = $self->next::method(@_); - my @filtered_tables; - - for my $table (@tables) { - my $full_quoted_table; - if($self->{db_schema}) { - $full_quoted_table = $self->{db_schema} . $self->{_namesep} . - $self->_quote_table_name($table); - } else { - $full_quoted_table = $self->_quote_table_name($table); - } - my $dbh = $self->schema->storage->dbh; - my $sth = $dbh->prepare($self->schema->storage->sql_maker - ->select(\$full_quoted_table, undef, \'1 = 0')); - eval { $sth->execute }; - if (not $@) { - push @filtered_tables, $table; - } - else { - warn "Bad table or view '$table', ignoring.\n"; - } - } - - return @filtered_tables; -} - # remove 'IDENTITY' from column data_type sub _columns_info_for { my $self = shift;