Revision history for Perl extension DBIx::Class::Schema::Loader
+ - fix unique detection in DB2 for multiple schemas (RT#39622)
- fix column name collisions with methods (RT#49443)
- fix loading MySQL views on older MySQL versions (RT#47399)
my $sth = $self->{_cache}->{db2_uniq} ||= $dbh->prepare(
q{SELECT kcu.COLNAME, kcu.CONSTNAME, kcu.COLSEQ
FROM SYSCAT.TABCONST as tc
- JOIN SYSCAT.KEYCOLUSE as kcu ON tc.CONSTNAME = kcu.CONSTNAME
+ JOIN SYSCAT.KEYCOLUSE as kcu
+ ON tc.CONSTNAME = kcu.CONSTNAME AND tc.TABSCHEMA = kcu.TABSCHEMA
WHERE tc.TABSCHEMA = ? and tc.TABNAME = ? and tc.TYPE = 'U'}
) or die $DBI::errstr;