From: Rafael Kitover Date: Wed, 15 Jul 2009 22:54:22 +0000 (+0000) Subject: add "smalldatetime" support to IC::DT X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4a80eede246c6cb2da4b15bcc00dbd6e56058c89;p=dbsrgits%2FDBIx-Class-Historic.git add "smalldatetime" support to IC::DT --- diff --git a/lib/DBIx/Class/InflateColumn/DateTime.pm b/lib/DBIx/Class/InflateColumn/DateTime.pm index fbdccbc..0b7e21e 100644 --- a/lib/DBIx/Class/InflateColumn/DateTime.pm +++ b/lib/DBIx/Class/InflateColumn/DateTime.pm @@ -119,6 +119,9 @@ sub register_column { if ($type eq "timestamp with time zone" || $type eq "timestamptz") { $type = "timestamp"; $info->{_ic_dt_method} ||= "timestamp_with_timezone"; + } elsif ($type eq "smalldatetime") { + $type = "datetime"; + $info->{_ic_dt_method} ||= "datetime"; } }