work around broken kseq in Pg fk info (RT#77062)
authorRafael Kitover <rkitover@cpan.org>
Tue, 8 May 2012 15:30:45 +0000 (11:30 -0400)
committerRafael Kitover <rkitover@cpan.org>
Tue, 8 May 2012 15:30:45 +0000 (11:30 -0400)
commit79137580d6250b5d9ae4e44506d5cb30033f5d20
tree1739cf62d04d95c01c4998f7a1b834bebb95bc3a
parent835a650ffbbce01781e4b7ce4a25a78344bddb46
work around broken kseq in Pg fk info (RT#77062)

The keyseqs from $dbh->foreign_key_info from DBD::Pg were erroneously
high, and since they are used as an array index, they were causing the
fk_info to return undefs and break everything.

Add a grep defined, to the column arrays in fk_info which fixes
everything.
Changes
lib/DBIx/Class/Schema/Loader/DBI.pm