fix for size on pg timestamps/intervals when there shouldn't be, hopefully
Rafael Kitover [Fri, 22 Jan 2010 03:34:57 +0000 (03:34 +0000)]
lib/DBIx/Class/Schema/Loader/DBI/Pg.pm

index 80cc8d6..a1042b1 100644 (file)
@@ -147,7 +147,7 @@ FROM information_schema.columns
 WHERE table_name = ? and column_name = ?
 EOF
 
-            if ((not $precision) || $precision !~ /^\d/) {
+            if ((not $precision) || $precision !~ /^\d/ || $precision == 6) {
                 delete $result->{$col}{size};
             }
             else {