fix undef warn in fk info for DBDs without schemas
authorRafael Kitover <rkitover@cpan.org>
Wed, 14 Mar 2012 18:10:26 +0000 (14:10 -0400)
committerRafael Kitover <rkitover@cpan.org>
Wed, 14 Mar 2012 18:10:26 +0000 (14:10 -0400)
commitba9954e0b9fb55c31a679689ce4246ecdcd4b45e
tree4b4b6c6fb5bdb1b5c49a97ebf3eadc7b380b658a
parent1af21646d6a7fa3947796c3204697879efc3c618
fix undef warn in fk info for DBDs without schemas

SineSwiper reported an undef warning from ::DBI in _table_fk_info
because of an s/// substitution on the schema values extracted from
$dbh->foreign_key_info, which can be undef for DBDs which do not have
the concept of schemas.

Change the substitution to only run if the values are defined.
lib/DBIx/Class/Schema/Loader/DBI.pm