From: Dagfinn Ilmari Mannsåker Date: Wed, 21 Jan 2015 13:54:35 +0000 (+0000) Subject: Shut up uninitialized warnings from ->table_info on DB2 X-Git-Tag: 0.07043~23 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d9a16c641e7650b8562d7572e0c4e5fe87250734;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Shut up uninitialized warnings from ->table_info on DB2 --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm index f7a4382..5c1296a 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm @@ -162,6 +162,14 @@ sub _dbh_tables { return $self->dbh->tables($schema ? { TABLE_SCHEM => $schema, TABLE_NAME => '%' } : undef); } +sub _dbh_table_info { + my $self = shift; + + local $^W = 0; # shut up undef warning from DBD::DB2 + + $self->next::method(@_); +} + sub _columns_info_for { my $self = shift; my ($table) = @_;