Skip to content

Commit 20537fc

Browse files
committed
Add a debug_to_sql! call for Timespec
Fixes diesel-rs#978
1 parent f7bb506 commit 20537fc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

diesel/src/types/impls/debug.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ mod pg_impls {
3030
debug_to_sql!(Interval, PgInterval);
3131
}
3232

33+
#[cfg(feature = "deprecated-time")]
34+
mod deprecated_time_impls {
35+
extern crate time;
36+
use super::*;
37+
use self::time::Timespec;
38+
39+
debug_to_sql!(Timestamp, Timespec);
40+
}
41+
3342
#[cfg(feature = "chrono")]
3443
mod chrono_impls {
3544
extern crate chrono;

0 commit comments

Comments
 (0)