Shut up uninitialized warnings from ->table_info on DB2
Dagfinn Ilmari Mannsåker [Wed, 21 Jan 2015 13:54:35 +0000 (13:54 +0000)]
lib/DBIx/Class/Schema/Loader/DBI/DB2.pm

index f7a4382..5c1296a 100644 (file)
@@ -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) = @_;