projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
datetime millisecond precision for MSSQL
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
InflateColumn
/
DateTime.pm
diff --git
a/lib/DBIx/Class/InflateColumn/DateTime.pm
b/lib/DBIx/Class/InflateColumn/DateTime.pm
index
ad3da46
..
db899cb
100644
(file)
--- a/
lib/DBIx/Class/InflateColumn/DateTime.pm
+++ b/
lib/DBIx/Class/InflateColumn/DateTime.pm
@@
-132,7
+132,7
@@
sub register_column {
$info->{_ic_dt_method} ||= "timestamp_without_timezone";
} elsif ($type eq "smalldatetime") {
$type = "datetime";
- $info->{_ic_dt_method} ||= "datetime";
+ $info->{_ic_dt_method} ||= "smalldatetime";
}
}