diff --git a/tests/it/query.rs b/tests/it/query.rs index 1a494b0..55732fd 100644 --- a/tests/it/query.rs +++ b/tests/it/query.rs @@ -108,6 +108,24 @@ async fn server_side_param() { .await .expect("failed to fetch string"); assert_eq!(result, "string"); + + let result = client + .query("SELECT {val1: String} AS result") + .with_param("val1", "\x01\x02\x03\\\"\'") + .expect("failed to bind \"string\"") + .fetch_one::() + .await + .expect("failed to fetch string"); + assert_eq!(result, "\x01\x02\x03\\\"\'"); + + let result = client + .query("SELECT {val1: Array(String)} AS result") + .with_param("val1", vec!["a", "bc"]) + .expect("failed to bind \"string\"") + .fetch_one::>() + .await + .expect("failed to fetch string"); + assert_eq!(result, &["a", "bc"]); } // See #19.