fix: cleanup #1
1 changed files with 4 additions and 1 deletions
|
|
@ -471,7 +471,10 @@ mod tests {
|
|||
fn test_build_update_casts_json_array_to_jsonb() {
|
||||
let cols = vec![("tags".into(), serde_json::json!(["a", "b"]))];
|
||||
let (sql, _, _) = build_query("PUT", "items", Some("1"), &cols, &[]).unwrap();
|
||||
assert_eq!(sql, "UPDATE items SET tags = $1::jsonb WHERE id = $2 RETURNING *");
|
||||
assert_eq!(
|
||||
sql,
|
||||
"UPDATE items SET tags = $1::jsonb WHERE id = $2 RETURNING *"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue