X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FDB2.pm;h=b3a1c234292531e02087d445ae8a3a76b63d8505;hb=bfb43060510498e0475461550af48f61bd99c981;hp=0ceda3af89e031ba56e36fd8ee93cac1c25e04c0;hpb=020f3c3ab66a216064907bfcee815f2d77bbb63f;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm index 0ceda3a..b3a1c23 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm @@ -73,7 +73,7 @@ sub _table_uniq_info { # DBD::DB2 doesn't follow the DBI API for ->tables sub _tables_list { - my $self = shift; + my ($self, $opts) = @_; my $dbh = $self->schema->storage->dbh; my @tables = map { lc } $dbh->tables( @@ -82,7 +82,7 @@ sub _tables_list { s/\Q$self->{_quoter}\E//g for @tables; s/^.*\Q$self->{_namesep}\E// for @tables; - return @tables; + return $self->_filter_tables(\@tables, $opts); } sub _table_pk_info {