projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
be2beaa
)
add "smalldatetime" support to IC::DT
Rafael Kitover [Wed, 15 Jul 2009 22:54:22 +0000 (22:54 +0000)]
lib/DBIx/Class/InflateColumn/DateTime.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/InflateColumn/DateTime.pm
b/lib/DBIx/Class/InflateColumn/DateTime.pm
index
fbdccbc
..
0b7e21e
100644
(file)
--- 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";
}
}