File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,18 @@ impl ToSql for NaiveDateTime {
32
32
}
33
33
34
34
impl FromSql for DateTime < UTC > {
35
- fn from_sql < R : Read > ( type_ : & Type , raw : & mut R , _ : & SessionInfo ) -> Result < DateTime < UTC > > {
36
- let naive = try!( NaiveDateTime :: from_sql ( type_, raw) ) ;
35
+ fn from_sql < R : Read > ( type_ : & Type , raw : & mut R , info : & SessionInfo ) -> Result < DateTime < UTC > > {
36
+ let naive = try!( NaiveDateTime :: from_sql ( type_, raw, info ) ) ;
37
37
Ok ( DateTime :: from_utc ( naive, UTC ) )
38
38
}
39
39
40
40
accepts ! ( Type :: TimestampTZ ) ;
41
41
}
42
42
43
43
impl ToSql for DateTime < UTC > {
44
- fn to_sql < W : Write +?Sized > ( & self , type_ : & Type , mut w : & mut W , _ : & SessionInfo )
44
+ fn to_sql < W : Write +?Sized > ( & self , type_ : & Type , mut w : & mut W , info : & SessionInfo )
45
45
-> Result < IsNull > {
46
- self . naive_utc ( ) . to_sql ( type_, w)
46
+ self . naive_utc ( ) . to_sql ( type_, w, info )
47
47
}
48
48
49
49
accepts ! ( Type :: TimestampTZ ) ;
You can’t perform that action at this time.
0 commit comments