mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Track changes in rust-nightly
This commit is contained in:
parent
18eb318753
commit
75dd753fbb
@ -117,7 +117,7 @@ impl ToSql for Vec<u8> {
|
|||||||
|
|
||||||
impl ToSql for time::Timespec {
|
impl ToSql for time::Timespec {
|
||||||
unsafe fn bind_parameter(&self, stmt: *mut ffi::sqlite3_stmt, col: c_int) -> c_int {
|
unsafe fn bind_parameter(&self, stmt: *mut ffi::sqlite3_stmt, col: c_int) -> c_int {
|
||||||
let time_str = time::at_utc(*self).strftime(SQLITE_DATETIME_FMT).unwrap();
|
let time_str = time::at_utc(*self).strftime(SQLITE_DATETIME_FMT).unwrap().to_string();
|
||||||
time_str.bind_parameter(stmt, col)
|
time_str.bind_parameter(stmt, col)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user