a few last minute fixes, and release for 0.03001
[dbsrgits/DBIx-Class-Schema-Loader.git] / lib / DBIx / Class / Schema / Loader / DBI / DB2.pm
index 18410e7..b10dcef 100644 (file)
@@ -39,7 +39,7 @@ sub _table_uniq_info {
         FROM SYSCAT.TABCONST as tc
         JOIN SYSCAT.KEYCOLUSE as kcu ON tc.CONSTNAME = kcu.CONSTNAME
         WHERE tc.TABSCHEMA = ? and tc.TABNAME = ? and tc.TYPE = 'U'}
-    );
+    ) or die $DBI::errstr;
 
     $sth->execute($self->db_schema, $table) or die $DBI::errstr;
 
@@ -53,6 +53,7 @@ sub _table_uniq_info {
             @{$keydata{$keyname}};
         push(@uniqs, [ $keyname => \@ordered_cols ]);
     }
+
     $sth->finish;
     
     return \@uniqs;