From: Rafael Kitover Date: Fri, 22 Jan 2010 03:34:57 +0000 (+0000) Subject: fix for size on pg timestamps/intervals when there shouldn't be, hopefully X-Git-Tag: 0.05000~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e097542050a7756eb6a6299e0743ccbdd51608a;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix for size on pg timestamps/intervals when there shouldn't be, hopefully --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm index 80cc8d6..a1042b1 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm @@ -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 {