Subject: | Does not find primary keys |
File Class/DBI/Loader/DB2.pm, sub _load_classes extracts all tables
with $dbh->tables( { 'TABLE_TYPE' => 'TABLE' } ). This returns with
schema and tablename enclosed in " (e.g. "SCHEMA"."TABNAME"). The
split does not remove the " and the query for keycolumns fails.
I use a test fix, I inserted one line:
$table =~ s/"//g; # <<< inserted by me
my ($tabschema,$tbl) = split '\.', $table; # original line
This is perl, v5.8.7 built for MSWin32-x86-multi-thread
Binary build 815 [211909] provided by ActiveState.
DB2 Version 8.2, FP3 Personal Edition