[Bast-commits] r7056 -
DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Wed Jul 15 22:54:23 GMT 2009
Author: caelum
Date: 2009-07-15 22:54:22 +0000 (Wed, 15 Jul 2009)
New Revision: 7056
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn/DateTime.pm
Log:
add "smalldatetime" support to IC::DT
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn/DateTime.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn/DateTime.pm 2009-07-15 22:41:45 UTC (rev 7055)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn/DateTime.pm 2009-07-15 22:54:22 UTC (rev 7056)
@@ -119,6 +119,9 @@
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";
}
}
More information about the Bast-commits
mailing list