Commit 1355923a authored by tbren's avatar tbren
Browse files

Revert temporary fix

parent 39d532ab
Showing with 0 additions and 10 deletions
+0 -10
......@@ -103,16 +103,6 @@ pub fn json_value_to_sqlite<'a>(
}
}
Value::Bool(b) if BOOL_COLUMNS.contains(column) => Ok((if *b { 1 } else { 0 }).into()),
Value::Number(n) if BOOL_COLUMNS.contains(column) => {
if let Some(int) = n.as_f64() {
Ok(ToSqlOutput::Borrowed(ValueRef::Real(int)))
} else {
Err(Error {
code: StatusCode::BAD_REQUEST,
msg: format!("Failed to parse JSON number {} to BOOL ({})", n, column),
})
}
}
Value::Number(n) if DATE_TIME_COLUMNS.contains(column) => {
if let Some(int) = n.as_i64() {
Ok(ToSqlOutput::Borrowed(ValueRef::Integer(int)))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment