Change VTabCursor::filter signature

This commit is contained in:
gwenn
2016-08-13 13:55:30 +02:00
parent 0a19cbd16a
commit 8f079819f7
8 changed files with 51 additions and 50 deletions

View File

@@ -21,10 +21,11 @@ impl ToSql for Value {
impl FromSql for Value {
fn column_result(value: ValueRef) -> Result<Self> {
match value {
ValueRef::Text(ref s) => serde_json::from_str(s),
ValueRef::Blob(ref b) => serde_json::from_slice(b),
_ => return Err(Error::InvalidColumnType),
}.map_err(|err| Error::FromSqlConversionFailure(Box::new(err)))
ValueRef::Text(ref s) => serde_json::from_str(s),
ValueRef::Blob(ref b) => serde_json::from_slice(b),
_ => return Err(Error::InvalidColumnType),
}
.map_err(|err| Error::FromSqlConversionFailure(Box::new(err)))
}
}