CC: | Frank.Biermann [...] gad.de |
Subject: | DBIx::Class::Schema::Loader::DBI::DB2 Class // Getting relationship fail |
Date: | Wed, 12 Nov 2014 13:01:36 +0100 |
To: | bug-DBIx-Class-Schema-Loader [...] rt.cpan.org |
From: | Frank.Biermann [...] gad.de |
Hello Support Team,
I would like to make the following proposal.
In the function _table_fk_info we should select the fields with rtrim.
Some schema have subsequent blanks and later on key values do not exist in
the object hashref.
=> Searching for relationship will fail.
SELECT tc.constname, sr.reftabschema, sr.reftabname,
kcu.colname, rkcu.colname, kcu.colseq,
sr.deleterule, sr.updaterule
to
SELECT tc.constname, rtrim(sr.reftabschema), sr.reftabname,
kcu.colname, rkcu.colname, kcu.colseq,
sr.deleterule, sr.updaterule
Kind regards
Frank Biermann