mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 20:52:19 +08:00
Simplify InvalidType
This commit is contained in:
@@ -1067,7 +1067,7 @@ impl<'a, 'stmt> Row<'a, 'stmt> {
|
||||
let idx = try!(idx.idx(self.stmt));
|
||||
let value = unsafe { ValueRef::new(&self.stmt.stmt, idx) };
|
||||
FromSql::column_result(value).map_err(|err| match err {
|
||||
Error::InvalidType(t) => Error::InvalidColumnType(idx, t),
|
||||
Error::InvalidType => Error::InvalidColumnType(idx, value.data_type()),
|
||||
_ => err,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user