fix: revert bool to text support in pg (#4727)

This commit is contained in:
HugoCasa
2024-11-16 10:01:16 +01:00
committed by GitHub
parent 663aad02dd
commit 5ef105b833
@@ -547,7 +547,6 @@ fn convert_val(
"text" | "varchar" => Ok(Box::new(None::<String>)),
_ => Err(anyhow::anyhow!("Unsupported JSON null type"))?,
},
Value::Bool(s) if arg_t == "text" || arg_t == "varchar" => Ok(Box::new(s.to_string())),
Value::Bool(b) => Ok(Box::new(b.clone())),
Value::Number(n) if matches!(typ, Typ::Str(_)) => Ok(Box::new(n.to_string())),
Value::Number(n) if arg_t == "char" && n.is_i64() => {