X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FDB2.pm;h=bd17516901dfdf9f3e40176355eb1deea0ed1b03;hb=a6db40afa6a8ee294f893461dbef8bfcb0f0688c;hp=684a85a0f8cafc3aef96ffbb7f0b8fa67401595d;hpb=f1f25439dd968b2f88f6de104f0674df589a6830;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 684a85a..bd17516 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm @@ -6,7 +6,7 @@ use base 'DBIx::Class::Schema::Loader::DBI'; use Carp::Clan qw/^DBIx::Class/; use Class::C3; -our $VERSION = '0.04003'; +our $VERSION = '0.04005'; =head1 NAME @@ -41,7 +41,7 @@ sub _table_uniq_info { WHERE tc.TABSCHEMA = ? and tc.TABNAME = ? and tc.TYPE = 'U'} ) or die $DBI::errstr; - $sth->execute($self->db_schema, $table) or die $DBI::errstr; + $sth->execute($self->db_schema, uc $table) or die $DBI::errstr; my %keydata; while(my $row = $sth->fetchrow_arrayref) { @@ -59,6 +59,33 @@ sub _table_uniq_info { return \@uniqs; } +sub _tables_list { + my $self = shift; + return map lc, $self->next::method; +} + +sub _table_pk_info { + my ($self, $table) = @_; + return $self->next::method(uc $table); +} + +sub _table_fk_info { + my ($self, $table) = @_; + + my $rels = $self->next::method(uc $table); + + foreach my $rel (@$rels) { + $rel->{remote_table} = lc $rel->{remote_table}; + } + + return $rels; +} + +sub _columns_info_for { + my ($self, $table) = @_; + return $self->next::method(uc $table); +} + =head1 SEE ALSO L, L,