This commit is contained in:
gwenn
2016-05-20 18:36:44 +02:00
parent 0740620ffe
commit cbc479c484
4 changed files with 19 additions and 11 deletions

View File

@@ -88,7 +88,10 @@ pub trait FromSql: Sized {
}
}
unsafe fn column_has_expected_typed(stmt: *mut sqlite3_stmt, col: c_int, expected_type: c_int) -> Result<()> {
unsafe fn column_has_expected_typed(stmt: *mut sqlite3_stmt,
col: c_int,
expected_type: c_int)
-> Result<()> {
let actual_type = sqlite3_column_type(stmt, col);
if actual_type == expected_type {
Ok(())